Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
enable grouping dynamically...
15/10/2012
22:43
Avatar
varaprakash
Member
Members
Forum Posts: 7
Member Since:
07/12/2011
sp_UserOfflineSmall Offline

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');

31/10/2012
14:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

01/11/2012
22:06
Avatar
varaprakash
Member
Members
Forum Posts: 7
Member Since:
07/12/2011
sp_UserOfflineSmall Offline

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.

06/11/2012
12:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

11/11/2012
16:59
Avatar
varaprakash
Member
Members
Forum Posts: 7
Member Since:
07/12/2011
sp_UserOfflineSmall Offline

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..

11/11/2012
17:49
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
30 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information