I am binding my grid using AJAX and PageMethods like below
$(document).ready(function () {PageMethods.GetEmployees(updateGrid, err);//bindSourceGrid();});function updateGrid(result) {var tableView = $find("<%= SourceGrid.ClientID %>").get_masterTableView();tableView.set_dataSource(result);tableView.dataBind();}function err(e) {}function RadGrid1_DataBound(sender, args) {
alert("Grid with id: " + sender.get_element().id + " bound on the client");
}
function SourceGrid_RowDataBound(sender, args) {
}
function GridCreated(sender, eventArgs) {
}
I am getting result back from server, but during rendering getting javascript error (Please see the attached image). My aspx is like below which hasn't any master and an independent sample page with reference to JQuery. Any clue here would be appreciated.
<telerik:RadScriptManager ID="ScriptManager" runat="server" /><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel><telerik:RadGrid ID="SourceGrid" runat="server" ShowGroupPanel="false" AllowSorting="false" ShowFooter="true" AllowPaging="false" HeaderStyle-CssClass="tableHeading br" AutoGenerateColumns="false" GridLines="Both" EnableViewState="false"><ClientSettings><Virtualization EnableVirtualization="true" InitiallyCachedItemsCount="2000" ItemsPerView="100" /><Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling><Resizing AllowColumnResize="true" /><ClientEvents OnCommand="SourceGrid_Command" OnGridCreated="GridCreated" OnRowDataBound="SourceGrid_RowDataBound" /></ClientSettings><ExportSettings><Excel /></ExportSettings><GroupingSettings ShowUnGroupButton="true"></GroupingSettings><MasterTableView ShowGroupFooter="false" GridLines="Both" DataKeyNames="" GroupHeaderItemStyle-Font-Underline="true"><CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings><RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn><ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True"></ExpandCollapseColumn><Columns>
