Call the expandGrid function in onclientclick event of button.
function expandGrid()
{
var grid = igtbl_getGridById('<%=UltraWebGrid1.ClientID%>');
expand(grid);
}
function expand(grid)
{
var rowsLength = grid.Rows.length;
for (var i = 0; i < rowsLength; i++)
{
var rowObj = grid.Rows.getRow(i);
if(rowObj.ChildRowsCount != 0)
{
rowObj.setExpanded(true);
expand(rowObj);
}
else
{
break;
}
}
}
Monday, February 8, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment