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
380
Grid without paging get only 5 records, request has parameter "top=5" in url. How can i change/remove in order to display all records?
posted

I have a grid without paging. But when I send a request the URL has additional parameters that I dont know how to change/control like "top=5", and It gives me only five records when actually there are 7 or more. The service is used in other page with remote filtering so may be this "top=5" is making problem when I use it without paging, so the question is, how can I remove or change this parameter?

  • 24671
    Suggested Answer
    posted

    Hi,

    you can refer to this topic :

    http://help.infragistics.com/Help/NetAdvantage/jQuery/2012.1/CLR4.0/HTML/igGrid_Paging.html

    this paragraph in particular:

    Remote Paging

    If you are binding to remote services, in order to properly initialize and render the pager, your service must specify both the responseDataKey (grid option) and the totalRecCountKey (paging option). The totalRecCountKey member tells the Paging widget how many records in total are in the backend. The responseDataKey specifies which property in the response contains the resulting data.

    Therefore, when remote paging is used, the grid automatically generates the proper request parameters in the following way:

    http://<server>/grid/PagingGetData?page=2&pageSize=25

    Note: You may change the key names, by setting the pageSizeUrlKey / pageIndexUrlKey in the Paging options, respectively.
    You can find similar topics for other features.
    Let me know if this helps. Thanks,
    Angel