I have a hierarchical grid, from which I need to extract data on the client side.
I have a handler function wired up for OnRowSelected(sender, eventArgs).
I can retrieve the data in the row using eventArgs.getDataItem().get_cell('columnname'). My problem is that if the row selected is in a detail table, some of the data I need is in the parent row. (The detail tables show weak entities).
I can see three possibilites:
1. I somehow manage to obtain access to the parent row's gridDataItem. I haven't been able to figure out how to do that.
2. I duplicate the fields I'm interested in in the rows of the detail table, and make them Display=false. When I do this, get_cell().innerHTML contains  .
3. I duplicate the fields I'm interested in in the rows of the detail table, and make them Display=true. This works, but it results in an unacceptable appearance in the user interface.
Any ideas on how to either access the parent row's data, or to access the data for hidden fields in the current row?
I have a handler function wired up for OnRowSelected(sender, eventArgs).
I can retrieve the data in the row using eventArgs.getDataItem().get_cell('columnname'). My problem is that if the row selected is in a detail table, some of the data I need is in the parent row. (The detail tables show weak entities).
I can see three possibilites:
1. I somehow manage to obtain access to the parent row's gridDataItem. I haven't been able to figure out how to do that.
2. I duplicate the fields I'm interested in in the rows of the detail table, and make them Display=false. When I do this, get_cell().innerHTML contains  .
3. I duplicate the fields I'm interested in in the rows of the detail table, and make them Display=true. This works, but it results in an unacceptable appearance in the user interface.
Any ideas on how to either access the parent row's data, or to access the data for hidden fields in the current row?