Hi Team Telerik,
Is batch editing mode compatible with a hierarchical grid? Here's why I ask:
So I was implementing Batch Edit mode throughout my application. It works fine on a single layer grid. However, when I try to apply it to a hierarchical grid, I run into problems.
First, I have a hierarchical grid with HierarchyLoadMode="Client". When I try to do any the batch CRUD operations, I get this viewstate error on the TOP level:
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
So I set ViewStateMode="Disabled" on the Grid itself and that error goes away when I do CRUD operations on the top level. However, when I try to do CRUD operations on the second level, I get another error:
JavaScript critical error in (unknown source location)
SCRIPT1030: Conditional compilation is turned off
I've tried a couple of things to correct this error:
My hierarchical grids are being powered by a SQLDataSource object.
I noticed that no one else complained about the error anywhere in the Grid forum, but I did find complaints about the error in the Telerik Reports forum and that was rectified with a version update. From that thread, I've inferred that the error seems to be related to jQuery somewhere inside the Telerik dll. I'm using Telerik AJAX version 2013.2.717.45
Is this a known issue?
Thanks in advance.
Jonathan
Is batch editing mode compatible with a hierarchical grid? Here's why I ask:
So I was implementing Batch Edit mode throughout my application. It works fine on a single layer grid. However, when I try to apply it to a hierarchical grid, I run into problems.
First, I have a hierarchical grid with HierarchyLoadMode="Client". When I try to do any the batch CRUD operations, I get this viewstate error on the TOP level:
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
So I set ViewStateMode="Disabled" on the Grid itself and that error goes away when I do CRUD operations on the top level. However, when I try to do CRUD operations on the second level, I get another error:
JavaScript critical error in (unknown source location)
SCRIPT1030: Conditional compilation is turned off
I've tried a couple of things to correct this error:
- I tried disabling the ViewStateMode on that GridTableView. Error still occurs.
- I tried removing HierarchyLoadMode="Client". It fixed the first error, but this "Conditional compilation is turned off" error still recurs.
My hierarchical grids are being powered by a SQLDataSource object.
I noticed that no one else complained about the error anywhere in the Grid forum, but I did find complaints about the error in the Telerik Reports forum and that was rectified with a version update. From that thread, I've inferred that the error seems to be related to jQuery somewhere inside the Telerik dll. I'm using Telerik AJAX version 2013.2.717.45
Is this a known issue?
Thanks in advance.
Jonathan