How To Group Rows In JEasyUI DataGrid
Posted by blogmeister on
April 1, 2013
When I first encountered this problem, there was no solution. Not even in the documentation of sample list of JEasyUI‘s portal.
However, I after I posted a topic in their forum to include it in a future release or so, probably after a day or two, they immediately created a Javascript library to do just that.
Impressive!
Look for the file datagrid-groupview.js and make sure you include that or else grouping rows won’t work in the data grid.
Retrieve your JSON data as is and simply assign the field that you want as basis for grouping the rows and changing the view’s value to groupview.
|
1 2 |
<span style="color: #0000ff;"><strong>view: groupview,</strong></span> <strong><span style="color: #0000ff;">groupField: 'mycolumn</span>',</strong> |
That’s it! Easy as pie!
Donations appreciated. Every little $ helps. Or click Google +1.









