jQWidgets Forums

jQuery UI Widgets Forums Grid Disable pagination and server side mode

This topic contains 2 replies, has 2 voices, and was last updated by  Hristo 7 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Disable pagination and server side mode #95729

    vagudo
    Participant

    Hi, good morning, I come to the forum to see if anyone can help me. I have a grid with pagination on server side, with different page sizes, 10,20, 50 and 100. The case is that I need to put a button (outside of the grid) called “accumulate” for example. This button you have to do is disable the pagination and bring all the records to the grid. I put the code I have. Thanks in advance.

    $(jqxgridobj).jqxGrid(
            {
                theme: theme,
                width: "100%",
                rowsheight: 40,
                autoheight: true,
                columnsresize: true,
                showfilterrow: false,
                groupable: true,
                source: dataAdapter,
                filterable: true,
                pageable: true,
                editable: false,
                enabletooltips: true,
                sortable: true,
                columnsreorder: true,
                autoshowfiltericon: true,
                autoshowcolumnsmenubutton: false,
                pagesizeoptions: [10, 25, 50, 100],
                pagesize: 10,
                selectionmode: "singlerow",
                columnsautoresize: false,
                virtualmode: true,
                groupsexpandedbydefault: true,
                autoshowloadelement: false,
                autosavestate: false,
                altrows: true,
                rendergridrows: function(params) {
                    return dataAdapter.records;
                },
                ready: function() {}
    });
    
    Disable pagination and server side mode #95731

    vagudo
    Participant

    I have tried disabling paging and virtual mode in false. What it does is hide the page, it is correct, but when I interact with the grid, in the ajax request the paget parameters continue to appear, like current page, records per page, etcetera.

    $(jqxgridobj).jqxGrid(
            {
                virtualmode: false,
                pageable: false
            });
    Disable pagination and server side mode #95802

    Hristo
    Participant

    Hello vagudo,

    I would like to suggest you try this approach – just set pageable to false. $("#jqxgrid").jqxGrid({ pageable: false });
    I try with this approach and there are no such items from the ‘paging’ mode.
    If you have a lot of records loaded in the Grid it will be better to save the ‘virtualmode’.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.