Horst Walter
Horst Walter

Reputation: 14081

jqGrid show/hide columns dialog

I want to create a dialog to enable/disable columns for my jqGrid. There was a module for this, but his is no longer supported as of jqGrid 4.x.

Is there a replacement for this module, I did not find one. Anything already existing I could reuse - or what would be the easiest way to realize it?

From the jqGrid documentation (here), this is what I need:

Show/Hide columns

Upvotes: 1

Views: 5718

Answers (1)

Oleg
Oleg

Reputation: 221997

You should use columnChooser. I would recommend you to use modified code of the method which I published in the answer (see the demo). It makes Column Chooser Dialog resizable. You can just include the code with $.jgrid.extend({columnChooser : function ... }); after jquery.jqGrid.min.js or jquery.jqGrid.src.js and overwrite the original version of columnChooser with the modified version.

Upvotes: 3

Related Questions