jQWidgets Forums

jQuery UI Widgets Forums Grid hide column

This topic contains 2 replies, has 2 voices, and was last updated by  yyj0070 12 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    hide column Posts
  • hide column #21590

    yyj0070
    Member

    i want hide column with grid initialize.
    how can i do it?

    hide column #21592

    Dimitar
    Participant

    Hello yyj0070,

    Just set the hidden property of a particular column to true, i.e.:

    columns: [
    { text: 'First Name', groupable: true, datafield: 'firstname', width: 90, hidden: true },
    { text: 'Last Name', groupable: true, datafield: 'lastname', width: 90 },
    { text: 'Product', groupable: false, columntype: 'dropdownlist', datafield: 'productname', width: 180 },
    { text: 'Ship Date', groupable: false, datafield: 'date', width: 90, cellsalign: 'right'},
    { text: 'Quantity', datafield: 'quantity', width: 70, cellsalign: 'right'},
    { text: 'Price', datafield: 'price', cellsalign: 'right', cellsformat: 'c2'}
    ]

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    hide column #21602

    yyj0070
    Member

    thx~~
    it’s so simple~~

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.