This is a migrated thread and some comments may be shown as answers.

Virtualization Throwing Error for VS 2010 with Version 2015.1.318.40

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaish
Top achievements
Rank 1
Jaish asked on 03 Apr 2015, 09:09 PM

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>

 

 

 

2 Answers, 1 is accepted

Sort by
0
Jaish
Top achievements
Rank 1
answered on 03 Apr 2015, 09:11 PM
One more point as once I commented the Virtualization element, issue gone!!! But I need Virtualization
0
Viktor Tachev
Telerik team
answered on 08 Apr 2015, 11:15 AM
Hi Jaish,

Virtualization is a great feature you can use. However, it has certain limitations.

Please make sure that you are not using grouping, row or cell selection, templates. If you would like additional information on Virtualization you would find the following article interesting.



Regards,
Viktor Tachev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
Jaish
Top achievements
Rank 1
Answers by
Jaish
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or