jQWidgets Forums

jQuery UI Widgets Forums Grid Hiding columns using a column group id

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • userdch
    Participant

    i want to be able to hide a set of columns that below to a particular column group.
    i have configured the columns using the “column hierarchy” setting.

                       
    columns: [
    { text: 'Contract',    columngroup: 'gtgroup', dataField: 'ContractGT', width: 100, filterable: false, cellclassname: cell
    { text: 'Long',         columngroup: 'gtgroup', dataField: 'LongGT',     width: 60,  filterable: false, cellsformat: 'd',
    { text: 'Short',        columngroup: 'gtgroup', dataField: 'ShortGT',    widt
    

    i can hide a column using a field name like this
    $('#idTrackerGridALL').jqxGrid('hidecolumn', 'LongGT');

    can i hide all three columns specifying the group id ‘gtgroup’ as follows
    $('#idTrackerGridALL').jqxGrid('hidecolumn', 'gtgroup');


    Peter Stoev
    Keymaster

    Hi userdch,

    No. You can hide columns only by passing the Column’s datafield.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.