HiI'm using igGrid with AppendRowsOnDemand and I want to send a Post request with a body.Is there anyway to do this mantaining AppendRowsOnDemand feature working?Something like this:$("#grid").igGrid({primaryKey: "ProductID",columns: [{ headerText: "Product ID", key: "ProductID", dataType: "number" },{ headerText: "Product Name", key: "Name", dataType: "string" },{ headerText: "Product Number", key: "ProductNumber", dataType: "string" }],dataSource: "www.someurl.com",body: data,//my body from POST requestrequestType: 'POST',features: [{name: "AppendRowsOnDemand",(...)}]});Thanks
Hi Paulo Pereira,
Thank you for posting in our forums!
I can see in my testing sample that using "POST" as the requestType causes all the data to be loaded up front. I wanted to confirm with you if this is the same behavior you are experiencing. If this is not the same behavior you are seeing, please describe your issue in more detail so I may have a better understanding of it.
I also have some additional questions to help clarify the issue.
1. What version and build of IgniteUI are you using? e.g. 16.1.20161.21452. How are you loading the data into the grid? If you are using MVC, are you using the GridDataSourceAction attribute on your someurl.com action?
Any other information you can provide about the issue would also be helpful.
Looking forward to hearing from you.
Hi
I have the same behavior.I'm using IgniteUI version 16.1.20161.2052I'm only using igGrid with JQuery.
Hello Paulo Pereira,
The AppendRowsOnDemand feature will request rows based on the data keys sent to the server in the POST data. You can specify these keys using the chunkIndexUrlKey, chunkSizeUrlKey, and recordCountKey options.
With this information, you can handle which rows need to be sent back to the client. And setting the recordCountKey is important so the igGrid knows if it needs to request more rows from the server.
I have attached a sample using MVC for the backend that demonstrates this. If you need further assistance with this, please let me know.