Posts

Showing posts with the label AJAX

Telerik: Why the $find Method is Not Working for RadGrid

The reason the $find method is not working for you is because the RadGrid loads on late binding. You need to get the RadGrid client object in the pageLoad() function like in the code below. After you get it you can set the global variables in the your Javascript so the other function will have access to the RadGrid object. <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> <script type="text/javascript"> var radGrid = null; var masterTableView = null; var rgDataItems = null; function pageLoad() { radGrid = $find("<%= RadGrid1.ClientID %>"); masterTableView = grid.get_masterTableView(); rgDataItems = masterTable.get_dataItems(); } </script> </telerik:RadCodeBlock>

Telerik: The Current RadAjaxManager

RadAjaxManager ram = RadAjaxManager.GetCurrent(this.Page);

How To Use AJAX Control Toolkit

1. Download the Toolkit at http://ajaxcontroltoolkit.codeplex.com/ 3. Extract the download 4. Add reference to AjaxControlToolKit.DLL 5. Register the DLL on your aspx page <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html> 6. Add ToolkitScriptManager <form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="ToolKitManager1" runat="server"></asp:ToolkitScriptManager>