Forum
20:30
10/08/2009
Hello Tony,
I answerd just now on the following question on the stackoverflow. The question was about case insensitive grouping. I remember before about close "not exact grouping" like grouping my year of by month and year instead of exact date values.
It seems to me that canging just one line of code allow to implement all the requirements. I suggest to change the line of code
to the following
($.isFunction(grp.isInTheSameGroup) ?
!grp.isInTheSameGroup(grp.lastvalues[i], v) : grp.lastvalues[i] !== v)) {
after that one could define groupingView with additional callback function isInTheSameGroup for example like the following
groupingView: {
...
groupField: ["name"], // the column by which we group
isInTheSameGroup: function (x, y) {
return String(x).toLowerCase() === String(y).toLowerCase();
}
}
The demo demonstrates the results. It displays the results like below
I don't tested grouping of multilevel, but I hope it should work too.
I think that implementation of the feature could be intresting for other users of jqGrid.
Bes regards
Oleg
14:13
10/08/2009
Hello Tony
The pull request contains very simple changes in grouping module of jqGrid (one line was modified and tree lines was added), but it implement more advanced version of grouping.
The demo demonstrate the results which look like
Best 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