Render script of a Query
var grid = widget;
grid.bind("dataBound", expand);
function expand(e) {
var row = $('#'+grid.element.attr('id') + ' tr[class="k-grouping-row"]');
grid.expandRow(row[0]);
grid.expandRow(row[1]);
}
In my case, we had 3 Status code for Projects: New,Open,Closed, for example.
The grid was sorted by Status DESC
I hardcoded this to expand Open & New, but not Closed.
Thats why only row[0] & row[1]
The grouping is... OK in Aware/Kendo.
Kinda breaks down if you have to paginate (like only 25,35,etc.) rows per page.
And if you return ALL rows, it can take a while to fill the grid.
But YMMV
good luck
Jaymer...
--> JaymerTip Auto Expand rows in a grid Group