jQWidgets Forums

jQuery UI Widgets Forums Grid Server side paging issue

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Server side paging issue #19680

    DavidSimmons
    Participant

    Using one of your examples on Server side paging I am not getting the paging events. When you press the Previous or Next buttons nothing is being passed to the server. I would expect to get a new pagenum passed to the server.

    $(document).ready(function() {
    // prepare the data
    var theme = ‘classic’;

    var source = {
    datatype: “json”,
    datafields: [
    {name: ‘CompanyName’},
    {name: ‘ContactName’},
    {name: ‘ContactTitle’},
    {name: ‘Address’},
    {name: ‘City’},
    {name: ‘Country’}
    ],
    url: ‘data.php’,
    root: ‘Rows’,
    beforeprocessing: function(data) {
    source.totalrecords = data[0].TotalRows;
    }
    };

    var dataadapter = new $.jqx.dataAdapter(source);

    // initialize jqxGrid
    $(“#jqxgrid”).jqxGrid({
    width: 600,
    source: dataadapter,
    theme: theme,
    autoheight: true,
    pageable: true,
    virtualmode: true,
    rendergridrows: function() {
    return dataadapter.records;
    },
    columns: [
    {text: ‘Company Name’, datafield: ‘CompanyName’, width: 250},
    {text: ‘Contact Name’, datafield: ‘ContactName’, width: 200},
    {text: ‘Contact Title’, datafield: ‘ContactTitle’, width: 200},
    {text: ‘Address’, datafield: ‘Address’, width: 180},
    {text: ‘City’, datafield: ‘City’, width: 100},
    {text: ‘Country’, datafield: ‘Country’, width: 140}
    ]
    });
    });

    Server side paging issue #19687

    Peter Stoev
    Keymaster

    Hi David,

    We have online and working sample with Server Paging. Here’s a link: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/serverpaging.htm?web

    Best Regards,
    Peter Stoev

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

You must be logged in to reply to this topic.