jQuery UI Widgets Forums Grid Disable pager when grouping

This topic contains 3 replies, has 3 voices, and was last updated by  abitualbellbo 6 days, 8 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Disable pager when grouping #135374

    Benny
    Participant

    Grouping works best without paging, so we are trying to disable it when the user adds groups. We tried changing the settings when the event fires:
    grid.virtualMode = state.groups.length === 0;
    grid.pageable = state.groups.length === 0;

    Is there a way for these changes to take effect, or should we create a new grid component?

    Disable pager when grouping #135378

    admin
    Keymaster

    Hi Benny,

    You can turn it off like this:

    $(“#jqxgrid”).jqxGrid({pageable: false});

    Best Regards,
    Peter Stoev

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

    Disable pager when grouping #135381

    Benny
    Participant

    Hi Peter,

    I forgot to mention that we use Angular, but this works great:

    onGroupschanged($event) {
    let noGrouping = $event.args.groups.length === 0;
    this.myGrid.setOptions({ virtualmode: noGrouping , pageable: noGrouping });
    }

    Thanks,
    Benny.

    Disable pager when grouping #135772

    abitualbellbo
    Participant

    Regardless matter whether you choose the Drift Hunters nimbleness of a lightweight sports car or the formidable might of a V8 engine, an ideal vehicle exists for any drifting technique.

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

You must be logged in to reply to this topic.