jQWidgets Forums

jQuery UI Widgets Forums Grid count of columns

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • count of columns #81127

    Rajesh
    Participant

    Hi All

    we are used $(“#” + gridId).jqxGrid(“columns”)records.length; for getting column

    but i want only count of visible column not need to count of hidden column

    but when i used this method getting count of column

    is there any solution for this

    Thanks,
    Rajesh

    count of columns #81166

    ivailo
    Participant

    Hi Rajesh,

    You can use a for loop through an array with your columns and check the hidden property of each one.
    You can use :
    isHidden = $('#jqxgrid').jqxGrid('getcolumnproperty', datafield, 'hidden');
    If hidden is false you will incease a counter about your visible columns.

    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    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.