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
155
POST request with igGrid and AppendRowsOnDemand feature
posted

Hi

I'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 request
requestType: 'POST',
features: [
{
name: "AppendRowsOnDemand",
(...)
}]
});

Thanks

Parents
  • 18204
    Offline posted

    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.2145
    2. 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.

Reply Children