jQWidgets Forums

jQuery UI Widgets Forums Grid Not able to hide column

This topic contains 4 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Not able to hide column #12008

    kartik.jajal
    Member

    I am not able to hide column of grid. i have written following code.

    $(“#jqxpurchasedetailgrid”).jqxGrid(
    {
    width: 750,
    source: dataAdapter,
    theme: theme,
    pageable: true,
    autoheight: true,
    sortable: true,
    altrows: true,
    enabletooltips: true,
    columns: [
    { text: ‘Ref. No’, datafield: ‘referenceno’, width: 100 },
    { text: ‘Purchase No’, datafield: ‘purchaseitemno’, cellsalign: ‘right’, width: 100},
    { text: ‘T.Qty’, datafield: ‘totalqty’, cellsalign: ‘right’, width: 100},
    { text: ‘Item’, datafield: ‘itemname’, width: 250 },
    { text: ‘Item Amt’, datafield: ‘itemamount’, width: 100 },
    { text: ‘Other’, datafield: ‘others’, width: 200 },
    ]
    });
    $(“#jqxpurchasedetailgrid”).jqxGrid(‘hidecolumn’,’purchaseitemno’);

    Not able to hide column #12014

    Peter Stoev
    Keymaster

    Hi kartik.jajal,

    If the data is still loading, you will not be able to hide the column. Call the hidecolumn method in the Grid’s ready callback or in the bindingcomplete event handler. Example: hideshowcolumns.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Not able to hide column #12072

    kartik.jajal
    Member

    thanks its working fine

    Not able to hide column #12909

    neong
    Participant

    From the example hideshowcolumns.htm, only show to hide 1 column. Any way to hide more then 1 columns?

    Not able to hide column #12922

    Peter Stoev
    Keymaster

    Hi neong,

    Call the “hidecolumn” method for another column and you will hide it. In the example, the method is also dynamically called by checking/unchecking the checkboxes.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.