Forum
22:43
07/12/2011
Is it possible to enable grouping dynamically? When I set grouping: false in the grid definition, grouping feature does not work. I have tried the following approach but the performance is really poor, is there a better way to implement this feature?
There seems to be an open issue in github not sure if this is fixed, please see here
var GroupOption = new Object();
GroupOption.groupField = ['name'];
GroupOption.groupText = ['<b> {0} - {1} Item(s)</b>'];
GroupOption.groupDataSorted = true;
GroupOption.groupOrder = ['asc'];
$('#grid').setGridParam({groupingView : GroupOption});
$('#grid').setGridParam({grouping : true});
$('#grid').trigger('reloadGrid');
14:03
Moderators
30/10/2007
Hello,
Please before to post consult some docs here
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
22:06
07/12/2011
Hi Tony,
My question was, I do not want to enable grouping by default. When users would like to switch to grouping mode, I would like to enable it dynamically. Current implementation does not support. I wanted to know if there is any way to implement this? I am sorry if my question was not clear earlier or may be I am missing something when you say refer some docs before posting the question.
12:10
Moderators
30/10/2007
Hello,
Sorry, but it seems to me you do not read all needed information.
Also please look at the demo in grouping section.
There is a exmaple which exactley do what you want.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
16:59
07/12/2011
Hi Tony,
I am not sure if I was conveying my question correctly or you misunderstood me. I have implemented grouping feature using the examples mentioned in the demo section only. In all those examples dynamic grouping is enabled by default. I would like to disable dynamic grouping initially and later on would like to enable it when they select a group by column in the select option. There is an open issue on github for this. Please take a look at here and you might understand what I was trying to convey. Thanks again..
17:49
10/08/2009
I unswered here on your identical question. I posted the demo which do the same what you described, but it have no described problem. So I suppose (like Tony wrote you before) that you should examine your code (which you not posted) for the problem. If you do found a bug in jqGrid you should provide the corresponding demo (the test case) which can be used to reproduce the problem.
Regards
Oleg
Most Users Ever Online: 715
Currently Online:
37 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66