Hi there!
I'm using groupModel. I got reference from grouping demo (
http://paramquery.com/pro/demos/group_rows)
And I have a select box to choice view type.
One is grouping as default, the other is 'not grouping' (just sequential order)
but when to change to 'not grouping', here is my code
$("#grid_group_rows").pqGrid("option", "groupModel", null);
$("#grid_group_rows").pqGrid("refresh");
when executing this, there are no rows left at all.
Data are totally dispeared..
So I just tried several ways..
refresh, refreshView, refreshDataAndView..
I have used same data with this example but, I tried to load data again. looking for way around...
$("#grid_group_rows").pqGrid("option", "dataModel", {data:dataModel});
$("#grid_group_rows").pqGrid("option", "title", "Log View");
$("#grid_group_rows").pqGrid("option", "groupModel.collapsed", [false]);
$("#grid_group_rows").pqGrid("option", "groupModel", null);
$("#grid_group_rows").pqGrid("refresh");
The reason I used 'groupModel.collapsed:false' is..
It worked when data are opened (grouping mode) before I choose view type to 'not-grouping' in selectbox.
Then I change mode to 'not-grouping', And finally I could see data.
I think It redrew just in opened row.
And I also think it's not working when setting 'null' as groupModel..
I have just wasted my time since yesterday. please give me help.
If there any specific example helping me, send me please.