As i click on a checkbox (template column) in a row of the main grid an event is raised and
a client-side function is called.
Inside this function I need to do something on its detail table, I don't have, and I need it, the ID of that Detail Table
I did like this:
var grid = $find(gridClientID);
var childGridID = grid.get_detailTables()[ROW].get_dataItems()[0].get_id()
ROW is the index of the main grid row to which the checkbox belongs.
But...
grid.get_detailTables()[index].get_dataItems()[0].get_id()
index actually refer to the index of the expanded ones, so if click on the first row (ROW=0) and first row is not expanded and the second row is expanded the action takes place on the second row (ROW=1) because is the first expanded
How do I know
1) detail Table ID having the parent grid?
2) if it's not expanded can I work on it?
Thank you
a client-side function is called.
Inside this function I need to do something on its detail table, I don't have, and I need it, the ID of that Detail Table
I did like this:
var grid = $find(gridClientID);
var childGridID = grid.get_detailTables()[ROW].get_dataItems()[0].get_id()
ROW is the index of the main grid row to which the checkbox belongs.
But...
grid.get_detailTables()[index].get_dataItems()[0].get_id()
index actually refer to the index of the expanded ones, so if click on the first row (ROW=0) and first row is not expanded and the second row is expanded the action takes place on the second row (ROW=1) because is the first expanded
How do I know
1) detail Table ID having the parent grid?
2) if it's not expanded can I work on it?
Thank you