Category : telerik

When I try to access the Telerik radcombobox in document Onload, I am receiving the object as null in IE11 only. (works in edge, chrome and Firefox) what is the best approach to access the radcombobox in document onload for IE. $(document).ready(function () { var combo = $find("<%=radcombobox.ClientID%>"); var items = combo.get_items(); } Error: combo ..

Read more

I have the following code: function OnClientLoad(sender, args) { $telerik.$(sender.get_inputElement()).on(‘keyup’, function (e) { var autoComplete = $find("<%= RadAutoCompleteBox1.ClientID %>"); var contents = autoComplete.get_inputElement(); var oe = contents.value document.getElementById(‘hdnParameter’).value = oe; } } <telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" autopostback="true" DataSourceID="SqlDataSource1" DataTextField="edesc" DataValueField="ecode" InputType="Token" Width="100%" Visible="true" AllowCustomEntry = "false" DropDownWidth="300px" OnClientLoad="OnClientLoad" > </telerik:RadAutoCompleteBox> <asp:SqlDataSource runat="server" ID="SqlDataSource1" CancelSelectOnNullParameter="False" ..

Read more

ReportViewer.prototype.PrintReport = function () { var targetFrame = document.getElementById(‘iframeid’).contentWindow; targetFrame.focus(); targetFrame.print(); return false; }; So I was using this hack to be able to print a document generated by Telerik Report. I am using ASP.NET Web Forms Report Viewer, which is deprecated. This is why I am using a hack to get the thing printed. ..

Read more

I’m using Telerik’s Rad Editor User Control in a .NET WebForms application and under a certain scenario where the control is loaded dynamically by another control (a custom made control to create slots for controls in a Bootstrap container), I get a JavaScript console error: Uncaught TypeError: Cannot read property ‘selection’ of undefined at b.Selection.getRange ..

Read more

I am adding RadMenuItem to ContextMenu during runtime to Telerik RadFileExplorer like below : I want to know how i can access this radmenuitem button using JS/ Jquery. I want to enable/disable this button at client side : RadMenuItem lastModifiedDate = new RadMenuItem("Last Modified Date"); lastModifiedDate.PostBack = false; lastModifiedDate.Value = "LastModifiedDate"; FileExplorer.TreeView.ContextMenus[0].Items.Add(lastModifiedDate); FileExplorer.GridContextMenu.Items.Add(lastModifiedDate.Clone()); aspx: <telerik:RadFileExplorer ..

Read more