Author Topic: paramquery grid numbering start again from 1 in next or previous page request  (Read 2291 times)

ismail.siddiqui

  • Newbie
  • *
  • Posts: 7
    • View Profile
I have project in which i have use paramquery grid for showing search result. But there is a problem in showing data. Whenever user search for some data and request for next page, numbering of data starts from 1 .

How can i resolve this in such manner so that numbering is going on in order.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
number column is based on rowIndxPage ( index of row on current page ).

As you want to show rowIndx, use a normal column instead of numberCell and implement its render callback

Code: [Select]
render: function( ui ){
return 1 + $(this).pqGrid('getRowIndx',{rowData: ui.rowData}).rowIndx;
}
« Last Edit: December 08, 2015, 05:16:39 pm by paramquery »