Show / Hide column dialog

Nov 18, 2013 at 9:13 AM
Hi Tomasz,

Is there a way to enable the "hide / show column dialog"?
Thanks in advance for your help!

Regards Gerard
Nov 18, 2013 at 9:52 AM
Hi Gerard,

There are two plugins which can server as "hide / show column" dialog: Set Columns and Column Chooser. The first one is no longer supported and included with full download of jqGrid so i would suggest the second one.

You can use it by adding a custom button to your Navigator:
.AddNavigatorButton(caption: "Columns", icon: "ui-icon-wrench", onClick: "function() { jQuery('#gridId').jqGrid('columnChooser', options); }", position: JqGridNavigatorButtonPositions.Last, toolTip: "Select columns");
Of course you need to replace the gridId with your grid identifier and provide the desired options.

Tomasz Pęczek
Marked as answer by TPeczek on 11/27/2013 at 2:27 AM
Nov 18, 2013 at 7:05 PM
Thanks, that works!