ericisko

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: Using Client Side Sorting But Server Side Paging using JQGrid #99201
    ericisko
    Participant

    Hi,

    Same thing happens with gridComplete.

    When you click on sort column, it will eventually call populate(). populate() will call addLocalData() (since datatype is changed to 'local' in gridComplete). However, addLocalData() will return empty result set as ts.p.data is empty and subsequent call to addJSONData() will result in empty grid.

    Even forcing population of ts.p.data in addJSONData() will not work – addLocalData() will change number of pages/records to that of ts.p.data array and that will disable paging – ts.p.data will have only one page of data as paging is on server side.

    Erik

    in reply to: Using Client Side Sorting But Server Side Paging using JQGrid #99182
    ericisko
    Participant

    loadComplete/onPaging solution does not seem to work with jqGrid 4.1.2.

    Looking at the code, in case of 'datatype: json' (or xml and maybe others), no data is stored on the client side (in ts.p.data) unless 'loadonce: true' is specified. But if you specify 'loadonce: true', paging is disabled.

    The 2 scenarios:

    datatype: json, loadonce: false

    • paging works (serverside)
    • sorting does not work (after doing sort, grid is empty)

    datatype: json, loadonce: true

    • paging is disabled
    • sorting works (clientside)

    Erik

    in reply to: Virtual scroll with dynamic row height #98856
    ericisko
    Participant

    Hi,

    there was an issue when the record count was exact multiply of rowNum. The fixed code below:

    --- jquery.jqGrid.src.js.orig

    in reply to: Virtual scroll with dynamic row height #98855
    ericisko
    Participant

    Hi,

    I resolved the issue with scrollTop and it seems to be working correctly. Bellow is the diff against jqGrid 4.1.2:

    --- jquery.jqGrid.src.js.orig

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

Stay connected with us in your favorite flavor!