Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
580
Grid inside UpdatePanel
posted

hi,

I have a problem with WebHierarchicalDataGrid inside an UpdatePanel. I want to refresh the panel (and reload the grid data from the db) with a button click. This generally works, but if i expand some detail rows (manual load on demand) i get an error if i want to reload the grid. I did the same thing with UltraWebGrid (working), but i have to switch to WebHierarchicalDataGrid for better browser support.

[InvalidOperationException: Collection was modified; enumeration operation may not execute.]
   System.Web.UI.ControlCollectionEnumerator.MoveNext() +8798722
   Infragistics.Web.UI.GridControls.ContainerGrid.EnsureChildControls() +783
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

I'm attaching a sample project to demonstrate the problem. Steps to reproduce:
1) click "Load" button.
2) expand a detail row on the grid.
3) click "Load" button -> error


testgrid.rar