Hierarchical Grid - Apply value from root table cell to children OnChildRowExpand

2 replies. Last post: February 6, 2012 2:00 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Zak CounidesMember

I am currently working with a hierarchial grid using VirtualLoad and LoadOnDemand. Currently the RootTable is being used to input a single change, and apply that change in mass to the children of that row. I am currently setting a flag in a 0 width column to indicate that when the row is expanded, the changes need to be applied, and am evaluating it with client script using the OnChildRowExpand event. 

The problem I am running into is that when that event is fired, the child rows still havent been loaded, and as such I can't perform the changes to the data. I am using webGrid1.GetSelectedObject().ToRowObject() to get the row, and it appears to be correct, but the code seems to hang whenever I attempt to use the ExpandChildRow commands to attempt to generate the child records of the row to perform the logical operations on. Am I missing a command, mis-read an example, using the wrong event? Any help with this would be appreciated.

(In case it is relevant, there are three tables. RootTable has ChildTable1 for children, and ChildTable1 has ChildTable2 for children.)

All times are GMT -5. The time now is 11:50 AM.
Previous Next