Hello,
I have a quick question;
I use the following method to expand and collapse grid rows (client side) when I have a hierarchical grid;
*****************************************
var RadGrid1 = $find("<%= RadGrid1.ClientID %>");
for (var i = 0; i < RadGrid1.get_masterTableView().get_dataItems().length; i++) {
var item = RadGrid1.get_masterTableView().get_dataItems()[i];
var MasterTable = RadGrid1.get_masterTableView();
var row = RadGrid1.get_masterTableView().get_dataItems()[i];
var cell = MasterTable.getCellByColumnUniqueName(row, "ExpandColumn");
if (cell.innerHTML != "") {
if (gridExpanded == false) {
item.set_expanded(true);
gridChanged2 = true;
}
else {
item.set_expanded(false);
gridChanged2 = false;
}
}
}
gridExpanded = gridChanged2;
*****************************************
But now I need to expand and collapse a rid that is setup with Groups or "GroupBy" with GroupHeaders via client side code and I can't seem to find the proper object / property to make it work.
Can you please point me in the right direction? How do I expand and collapse a grid with client side code that is grouped?
Many thanks in advance,
Dave