Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views

Hi, 

The text option available in the RadImage editor, once entered doesn't allow to edit it. Is it possible to get/generate a click event on the image displayed in RadImage editor? I am trying a scenario where, when the user clicks anywhere on the image it opens a radwindow with the co-ordinates where it is clicked and add a comment allowing to edit at later time. Is this scenario possible with RadImageEditor?

 

Thanks,

Vidya

 

 

Vessy
Telerik team
 answered on 09 Mar 2017
1 answer
97 views

I having a random problem recently with the last Q4 ASP.NET Ajax library. On occasion I get the following error. It seems to happen when one is editing the editor. I am posting here because the error message specifically mentions my script manager.

Message: HierarchyRequestError

URL: https://salescrm.olincorp.net/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_rsmMainScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a4d4da635-3815-4b70-912b-f389ade5df37%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a19b52502-df64-4cc0-aea9-c7e50aa82eb1%3a16e4e7cd%3af7645509%3a22a6274a%3a33715776%3a4877f69a%3a86526ba7%3aed16cbdc%3a88144a7a%3a24ee1bba%3ae330518b%3a2003d0b8%3ac128760b%3a1e771326%3ac8618e41%3a1a73651d%3a333f8d94%3acb4a7569%3a30f1f089%3ab2e06756%3a92fe8ea0%3afa31b949%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3a6d43f6d9%3ab7778d6c%3aaa288e2d%3a258f1c72%3ae085fe68%3a63b115ed%3a3856fd9f%3adc7e0bd%3a1569bb5f%3addbfcb67%3abd8f85e4

Line Number: 23595

 

Not sure it matters, but for my editors i have the following client script that has been in place for a while. I have been unsuccessful in tracking this issue down.

Telerik.Web.UI.Editor.CommandList.AjaxSpellCheck = function (commandName, editor) {
     var spell = $find('<%= radspellSpellChecker.ClientID %>');
     spell.spellCheck(new PrometheusTextSource(editor));
     return false;
 }
 
 var PrometheusTextSource = function (editor) {
     this._editor = editor;
     this.get_text = function () { return this._editor.get_html(); };
     this.set_text = function (value) { this._editor.set_html(value); };
 }
 
 function OnEditorLoad(editor, args) {
     editor.oldValue = editor.get_html(true);
     var element = document.all ? editor.get_document().body : editor.get_document();
     $telerik.addExternalHandler(element, "blur", function (e) { var ed = editor; var newValue = ed.get_html(true); if (ed.oldValue != newValue) Master_SetFormChanged(); });
 }
 
 function OnClientModeChange(sender, args) {
     if (sender.get_mode() == 4) // Checking the mode, where mode 4 is Preview 
     {
         sender.get_toolContainer().style.display = "none"; // Hide ToolBar 
     }
     else {
         sender.get_toolContainer().style.display = "block"; // Show ToolBar 
     }
 }

 

Rumen
Telerik team
 answered on 09 Mar 2017
1 answer
65 views
Hi There
I am trying to upgrade my project from ASP.NET AJAX Upgrade fail from to Version 2013.2.717.45 to 2017.1.228.45. But it is giving me all sorts of problems. I am sending you few errors, can you please take a look and come back to me as soon as possible. I am using VS 2012
This is really urgent and your help will be highly appreciated.
Thanks
Syed
Rumen
Telerik team
 answered on 09 Mar 2017
0 answers
71 views

I have a RadGrid control with server side filtering enabled such that you can enter text and then select Contains, Equals, etc.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

I need to be able to have filter as a dropdown list with only the available options in the current grid.

For example if the grid's Country field contains only two countries, England and USA then the filter dropdown for the Country field should only display England and USA.

Is this functionality possible?

Silviu
Top achievements
Rank 1
 asked on 09 Mar 2017
1 answer
105 views

I have created a custom theme with the Theme Builder but I have notice that many, if not all, of the URL references in the css files contain server-side code blocks. Since I am adding links to these files directly the server side code does not get executed.

 

Example from the SearchBox css file:

.RadSearchBox_BP_FormDefault .rsbLoadingIcon {   

    background-image: url('<%=WebResource("Telerik.Web.UI.Skins.BP_FormDefault.Common.loading_small.gif")%>'); 

}

The example linked in several of the existing threads does not provide any information.

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/appearance-and-styling/modifying-existing-skins#creating-a-custom-skin-basic-steps

 

 

 

Magdalena
Telerik team
 answered on 09 Mar 2017
0 answers
68 views

I have a very simple grid

 

<telerik:RadGrid ID="GrdCourses" runat="server" OnNeedDataSource="GrdCourses_NeedDataSource" OnDetailTableDataBind="GrdCourses_DetailTableDataBind" AutoGenerateColumns="false" MasterTableView-ExpandCollapseColumn-HeaderStyle-Width="50px">
    <ClientSettings AllowDragToGroup="false">
        <Scrolling AllowScroll="true" UseStaticHeaders="True" />
        <Resizing AllowColumnResize="true" />
    </ClientSettings>
    <MasterTableView DataKeyNames="ProductPlanID">
        <Columns>

 

I was thinking that MasterTableView-ExpandCollapseColumn-HeaderStyle-Width property was there to set the width of the ExpandCollapse column... but it has no effect at all.

The skin has been set to tBoostrap in the web.config.

No other CSS are applied

I'm using v 2017.1.228

 

Anyone knows a workaround to this bug?

marco
Top achievements
Rank 2
 asked on 09 Mar 2017
0 answers
105 views

We have a project that has been built over many years and uses a master page with content pages to deliver to the browser. We are embarking on project to migrate web pages to a new fresh look. To achieve this look or as near as I need to make use of using custom skins which will be applied in the code-behind.

Now this is where the problem arises; I have spent more than 8 hours trying to make this happen; I copied from the telerik skins folder the Metro skin and changed this to our product name INONI. In my testing I thought I would apply it to the RadWindow control; I so I edited the CSS and change the styles ending with _Metro to _INONI in keeping with skin. Using the code-behind method I used it with my project and clicked a button with uses the radopen java script method this opened to what can only be described as a ghost version of the window.

Using the same method but configuring the project to use in-built Metro skin this works fine. I have constructed a mockup project (30mb unfortunately zipped) with all the elements to show you what I mean but I am unable to attach this to the thread. I am in need of some inspiration.

Matthew
Top achievements
Rank 1
 asked on 09 Mar 2017
1 answer
68 views

Hi,

What i want to achieve is to set an aggregate function for a field (for example min) to calculate on the latest subtotal the sum.
Please check following printscreen.
Is it possible ? 

 

Regards,

Maxime LEMARE

Eyup
Telerik team
 answered on 09 Mar 2017
17 answers
898 views
I have a RadGrid with paging enabled. I select rows using a GridClientSelectColumn, When I click the save button, I want to do something with all the rows that are selected on all pages.

However, it was only looping through the rows on the current page. I tried to fix this by temporarily turning paging off, i.e.,

protected void btnSave_Click(object sender, EventArgs e)
{
    RadGrid1.AllowPaging = false;
    RadGrid1.Rebind();
     
    foreach (GridDataItem item in RadGrid1.Items)
    {
        CheckBox chk = (CheckBox)item["Select"].Controls[0];
        if (chk.Checked)
        {
...
        }
    }
 
    RadGrid1.AllowPaging = true;
    RadGrid1.Rebind();
}

This did indeed loop through every row on every page. However, every row is appearing as unchecked.

I then noticed that the selected rows are not persisted when I switch pages, so I used this method to persist them on the client side. So I have a Javascript array with the IDs of the selected rows. But is there a way to access that array in btnSave_Click?

It also looks like I can use this method to persist the selected rows on the server side. But then I'd have to select the rows with Command buttons, and I'd prefer not to do that if I don't have to.
yook
Top achievements
Rank 1
 answered on 09 Mar 2017
10 answers
663 views

I have looked at the documentation for RadPageLayout to try to understand what is the difference between Span and (SpanXs, SpanSm, SpanMd, SpanLg, SpanXl) but the documentation only covers Span and does not explain what (SpanXs, SpanSm, SpanMd, SpanLg, SpanXl) is.

With Span for columns, it just says it is the size or width in grid units of the column.  One grid equals 1/12 of the total width.

That is still not clear enough for me.

For example, what does it mean when a column has Span=4 and SpanMd=8?

Sincerely,

Keith Jackson

ruckmani
Top achievements
Rank 1
 answered on 09 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?