Please find the column reordering and column chooser dialog as used with jqGrid when used with a ui.multiselect.js.
I want to alter the style of the ui.multiselect plugin without altering the js file. Just want to override a few things. Firstly I want the two column headers to be at same level height - 6 items selected and right side column header Add all. I wan to change the text for 6 items selected to Avlialble Columns and right column header to Hidden Columns. How can this be done by overriding the ui.multiselect plugin in a separate file (js) so when I call grid.jqGrid('columnChooser') it automacially applies the overriden styles.
First of all I find your question very interesting, so +1 from me.
One thing from the picture, which you posted and which is not directly the part of your question, seems me a little strange: the Column Chooser dialog has no resizable part at the right bottom corner of the dialog. It could be some additional settings which you use. I personally find better to have the dialog resizable.
Now back to your main question. To change the default texts 'items selected', 'Add all' and 'Remove all' you can use the following code:
Additionally you can consider to change the width of the Column Chooser dialog and the proportions between the left and the right panel with
or set the same parameters in the call of the
columnChooser
:As the results you will have the dialog like
see the demo.
You can additionally consider to disable the searchable field of the column chooser if you don't plan to use it. It will save the width in the dialog:
UPDATED: If you need some additional customization in the Column Chooser dialog you can do the changes manuallyafter the dialog is created. For example the results of the code
will be the following:
see the corresponding demo here.