qgrid icon indicating copy to clipboard operation
qgrid copied to clipboard

Allow set_defaults to set a default column definition

Open JohnOmernik opened this issue 4 years ago • 0 comments

Environment

All

Description of Request

When trying to use qgrid as my default datagrid display, one thing I often do is hide the index column. (This can be done using the column_definitions when using show_grid)

However, when using qgrid.enable and qgrid.set_defaults, I can only set grid_options and column_options, not column_definitions.

Now, I can probably understand why that makes sense, however, and in relation to #122 I think index display should be first class grid_option. I can set the index to be hidden using the workaround in #122, but if it were a grid option to not display the index, I could then set it in defaults, rather than provide the ability to set column_definitions in defaults (which I agree doesn't make sense. )

JohnOmernik avatar Nov 17 '20 14:11 JohnOmernik