How can I sort jqgrid data using loadonce: true and rownum: 5

Now I learned that the only way to sort the client side is to set loadonce:true,.. BUT, if I set it to true, then I could not navigate the page, and if I set rownumless than the amount of data, it does not display other data. For example, if I encode this:

    viewrecords: true,
    rowList:[5,10,50,100],                          
    pager: '#tblDataPager',
    sortname: 'main_account_group_desc',                        
    rowNum:5,
    loadonce:true

and my data is more than 5, only the first 5 of my data will be displayed, there is no search call, but my sorting is in order. and if im going to change the code to this:

    viewrecords: true,
    rowList:[5,10,50,100],                          
    pager: '#tblDataPager',
    sortname: 'main_account_group_desc',                        
    rowNum:5,
    loadonce:false

it will display 5 data on jqgrid, there will be a navigation page (next, previous, last, first), but wont sort function every time I click on the column heading.

, rownum:5 loadonce:true ? - , ?

+3
1

hai friend u r loadonce: true, jqgrid . (, ..) , . . (, ) .

u r loadonce: false, , , , . .

            loadonce:true  => first time only data load from server 
            loadonce:false => all the time data load from server 

0

All Articles