Hi,
I have a Rad Grid with a NestedViewTemplate that can be expanded/collapsed client-side. One of the requirements for this grid is to also be able to expand/collapse all NestedViewTemplates in the Grid client-side with the event raised by an external control, which I can do easily with this code that I found here in an earlier thread:
The problem is that I also have a requirement that the grid needs to have grouping-by-column ability (also done on the client-side). However, when the grid is grouped by a column or columns, the code above no longer works and gives me the following error message when it hits the line below, 'title' is null or not an object:
Is there any way I can expand or collapse all nestedviewtemplates with an external control client-side when the Rad Grid has been grouped by a column? Thank you.
I have a Rad Grid with a NestedViewTemplate that can be expanded/collapsed client-side. One of the requirements for this grid is to also be able to expand/collapse all NestedViewTemplates in the Grid client-side with the event raised by an external control, which I can do easily with this code that I found here in an earlier thread:
function expandCollapseAll(expand) { |
var grid = $find("<%=rgDomestic.ClientID %>"); |
var table = grid.get_masterTableView(); |
var rows = table.get_dataItems(); |
for (var i = 0; i < rows.length; i++) { |
var Row = rows[i]; |
if (expand == true) { |
Row.set_expanded(true); |
} |
else { |
Row.set_expanded(false); |
} |
} |
} |
The problem is that I also have a requirement that the grid needs to have grouping-by-column ability (also done on the client-side). However, when the grid is grouped by a column or columns, the code above no longer works and gives me the following error message when it hits the line below, 'title' is null or not an object:
if(_348.title==this._owner._hierarchySettings.ExpandTooltip) |
Is there any way I can expand or collapse all nestedviewtemplates with an external control client-side when the Rad Grid has been grouped by a column? Thank you.