Hi,
i got a Telerik Grid and need all items InPlace EditAble.
It works fine if i just open up a few Levels, but on some deeper Levels i get errors while collapsing/expanding the hierarchy.
The complete hierarchy could not be expanded at startup. (To much data)
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
The Data is bound on serverside.
Could please somebody give me an hint. I tryied a lot of the stuff explained in examples and forum entries.
But didn't get it run without having errors. :-(
Databinding:
Set items to editmode:
Thanks a lot for your help.
I really don't know what to try anymore...
Kind regards
Lars
i got a Telerik Grid and need all items InPlace EditAble.
It works fine if i just open up a few Levels, but on some deeper Levels i get errors while collapsing/expanding the hierarchy.
The complete hierarchy could not be expanded at startup. (To much data)
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
The Data is bound on serverside.
Could please somebody give me an hint. I tryied a lot of the stuff explained in examples and forum entries.
But didn't get it run without having errors. :-(
Databinding:
protected void RadGridHierarchy_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ if (!e.IsFromDetailTable) { RadGridHierarchy.DataSource = GetMaterialHierarchyDataTableFiltered("ROOT", false); }}protected void RadGridHierarchy_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e){ GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; string ParentCode = dataItem.GetDataKeyValue("MaterialHierarchyNodeCode").ToString(); e.DetailTableView.DataSource = GetMaterialHierarchyDataTableFiltered(ParentCode, false); }Set items to editmode:
protected void RadGridHierarchy_PreRender(object sender, EventArgs e){ SaveGridValues(); if (_expandedItem != null && _expandedItem.Expanded) { if (_expandedItem.HasChildItems) { foreach (GridTableView view in _expandedItem.ChildItem.NestedTableViews) { foreach (GridDataItem item in view.Items) { item.Edit = true; } view.Rebind(); } } } for (int i = 0; i < RadGridHierarchy.MasterTableView.Items.Count; i++) { RadGridHierarchy.EditIndexes.Add(i); } RadGridHierarchy.Rebind();}protected void RadGridHierarchy_ItemCommand(object sender, GridCommandEventArgs e){ if (e.CommandName == RadGrid.ExpandCollapseCommandName) { _expandedItem = (GridDataItem)e.Item; }}Thanks a lot for your help.
I really don't know what to try anymore...
Kind regards
Lars