Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Thursday, September 19, 2013

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>

Tuesday, September 3, 2013

Telerik: The Current RadAjaxManager














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

Telerik: The Current RadAjaxManager

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

Tuesday, August 13, 2013

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>


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>