I have a Hierarchial Web Grid. Initialize is done on postback. AddRow is done using a js function leveraging igtbl_addNew. Update and delete of cells are handeled by the client side event of the grid (AfterExitEditModeHandler="AfterExitEditMode" ClickCellButtonHandler="CellButtonClick" BeforeRowDeletedHandler="BeforeDelete" AfterRowDeletedHandler="AfterDelete")
After i remove a row and then try to update a cell for any of the remainder rows under the same parent row it doesn't return the proper child nodes it return a object and its evaluation says "Children could not be evaluated".
Please help me.
Thank you,
Sugnesh
It will likely take some in-depth investigation to determine what's happening here. I can't tell based on the symptoms described here.
I suggest you submit a support request so that a Developer Support Engineer can assist you further. I don't entirely understand the scenario you've described, so the best thing you can include with your support request is a sample project that we can run and debug and which reproduces the symptoms you've described.
Is there another way to get list of child rows without using row.getchildrows().
Thanks
Another option is to loop from 0 to the value of the row's ChildRowsCount property, and use getChildRow() at each index. This is a more useful approach than using getChildRows() if you intend on performing some action on each row.
for (var i = 0; i < row.ChildRowsCount; i++){ var childRow = row.getChildRow(i);}
By the way, if you plan on deleting any of these rows, I suggest looping through the list backwards instead, so you don't miss anything:
for (var i = row.ChildRowsCount - 1 ; i >= 0; i--){ var childRow = row.getChildRow(i);}