Forum


08:05

26/11/2009

Hi,
I have problem with columnChooser. I have some columns, which I don´t want to allow user to select in columnChooser dialog, so I mark them with hidedlg:true.Everything works fine, but choosen columns are inserted after those columns, which didn´t appear in the dialog.Is it possible to leave them at original position (end).
Thank You Jan
12:27

30/07/2009

You can pass in your own "done" function (in the columnChooser options). The done function is passed the permutation to be applied (or null if the user cancelled the columnChooser).
The default function is:
You would need to modify the permutation to keep your columns where you want them, before calling remapColumns.
The permuation array is such that the column that is currently in position permutation[i] will move to position i.
Mark
12:10

27/04/2010

Hello,
I Have a similar problem,
I use the column chooser in order to allow the user to show/hide/reorder columns.
But the thing is, when the user hides a column using the column chooser, and then uses it again to show the same column, I want this column to get back to its original position.
Presently, the column is put at the end of all the columns shown in the grid.
I could always use the column chooser's "done" fonction to reorder the columns as is the colmodel when showing columns (the columns order in this one is not modified when just hiding a few columns), but the user will not be able to reorder columns anymore, only show/hide them.
In clear, is there a way to use the column chooser in order to show/hide/reorder columns, but being sure that a column that is hiden then shown us put back to its anterior position before being hiden?
Thanks.
11:22

Moderators
30/10/2007

Hello,
After you make it visible at left side, you can use drag and drop to put it at its original position.
Regards
Tony
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.
Most Users Ever Online: 715
Currently Online:
62 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