jQWidgets Forums

jQuery UI Widgets Forums Grid JQXGrid Column Navigation

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • JQXGrid Column Navigation #20986

    mithun joshi
    Member

    Hi All,

    I want to have column wise navigation for my grid.

    Suppose my grid has total of 20 columns and have “Previous” and “Next” buttons for pagination.
    By default only first 10 columns of total 20 columns should be displayed.

    On click of “Next” button first 10 column should get hide and columns from 11 to 20 should get displayed.
    Similar action to happen on click of “Previous” button.

    I tried using java “for loop” to hide/unhide the columns but its too slow.

    for(var i=0;i<=10;i++){
    $("#dataGrid").jqxGrid('hidecolumn',colDataFieldArray[i]);
    }

    for(var i=10;i<colDataFieldArrayLength;i++){
    $("#dataGrid").jqxGrid('showcolumn',colDataFieldArray[i]);
    }

    Kindly suggest the best way to achieve Column wise navigation.

    Thanks in advance.

    JQXGrid Column Navigation #20988

    Peter Stoev
    Keymaster

    Hi mithun joshi,

    You should use “beginupdate” and “endupdate” of the Grid before and after your loops. Otherwise, you will end up with 11 unnecessary re-renders instead of just 1.

    Best Regards,
    Peter Stoev

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

    JQXGrid Column Navigation #20992

    mithun joshi
    Member

    Thanks Peter,

    Your reply helped me.

    Thanks Again.

    JQXGrid Column Navigation #64494

    frank1russo
    Participant

    Is there a column hiding/unhiding feature similar to what has?

    JQXGrid Column Navigation #64497

    Peter Stoev
    Keymaster

    Hi frank1russo,

    Show/Hide columns demo is available on our website. The features which we have are demonstrated online.

    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.