JQuery Flexigrid function show / hide columns in header

Here is my Flexigrid:

$("#grUser").flexigrid({
    url: 'someJSON.php'
    , dataType: 'json'
    , colModel : 
    [
        {display: '', name : 'Index', width :100, align: 'left'}
        , {display: '', name : 'Value', width : 100, align: 'left'}
    ]
    , title: 'Details'
    , width: 350
    , height: 200
    , singleSelect: true 
});

The show / hide column function in the header is really cool, but I want to specify which column will be available , and I'm having trouble finding good documentation about what my options are when specifying colModel. Here

{display: '', name : 'Index', width :100, align: 'left'}

What else can we put in a column definition?

Optional - What is the documentation source for Flexigrid?

+5
source share
1 answer

Unfortunately, there is no documentation for this and, therefore, it is very frustrating. You should look at the source code and see what you can do.

'hide: true', . hide true, .

{display: 'Row ID', name : 'id', width : 100, sortable : true, align: 'left', hide: true}

:  - display ( , )

  • name ( , Ajax)

  • width

  • height

  • sortable: true/false

  • align: left/center/right

  • hide: true/false

  • searchable: true/false ( )

+20

All Articles