jQWidgets Forums

jQuery UI Widgets Forums Grid pagesize and total

This topic contains 5 replies, has 2 voices, and was last updated by  lineker 11 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • pagesize and total #22642

    lineker
    Participant

    Hi,

    ı am getting data with json to my grid.
    My pagesize is 50 default
    And I am fetching 50 records at each request.
    But total record number is 2560.
    I want to see as follow:

    0-50 / 2560

    How can I do it if I fetch 50 records at each request?
    What is the meaning of total below?

    my $result = { total => $total_records, //2560
    act => $data_list,
    success => JSON::true
    };

    my $charset = $PARAM{CHARSET}{$lang};

    print $q->header(-content_type => “application/json; charset=$charset”);

    print to_json($result);

    pagesize and total #22647

    Peter Stoev
    Keymaster

    Hi,

    Please, look at this sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/serverpaging.htm?web. It shows how to implement Server Paging.

    Best Regards,
    Peter Stoev

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

    pagesize and total #22986

    lineker
    Participant

    Hi Peter,

    Thanks for link.
    I applied it but there is a problem.
    To be able to do it I am adding below code to my grid but this time filterable options, sort by ascending, descending dont work!

    virtualmode: true,
    rendergridrows: function()
    {
    return dataAdapterGrid.records;
    },*/

    pagesize and total #23115

    lineker
    Participant

    Hi Peter,

    Is there any solution for this?

    pagesize and total #23208

    lineker
    Participant

    Hi,

    Is not there any solution for this.
    The thing I want is very basic

    I want to see total at my grig pagind but at the same time I want grid filter to work

    pagesize and total #23216

    lineker
    Participant

    Hi

    I found the solution. I am using virtual mode but filter options are denone by me manually as follow;

    $(“#reportgrid”).on(“sort”, function (event) {
    ……
    }

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

You must be logged in to reply to this topic.