Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
need help in paging when we request page wise json data from the server
posted

i need help in infragistics jquery grid which i am new to it.. if my scenario where i want to request page by page. for example if we have 1000 records in first request i send only 1st 100 records as json sent to datasource of the grid. but the problem it is showing only 1 page in the pagger dropdown but which is not correct which actually should contain 10 pages bcz page size -100 / total record -1000.
i tried by below code to reset the total records count to 1000 by using below code: but didnt worked.
$(“#grid1”).igGridPaging("option", "recordCountKey ",1000);   
So please give some samples to reset pagger dropdown value according to the total records.
please help me it is very urgent. In advance Thank you..

 

Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Rocky,

    I guess that you're binding igGrid to some custom Web Service and not using our Grid MVC Wrapper.

    In this case the data which your service returns to the grid should have an extra property which holds the real row count and recordCountKey should contain this property name.

    You can see what I'm talking about in the screenshot.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc. 

Children