Hello.
I am developing an application with ASP MVC, Framework 4.0 and Infragistics 2011.2.I am using the following igGrid:
this igGrid is part of a HTML Form.
the question is: Is there a way to read that igGrid data in the server side after click a "Submit" button? I mean in the ClassController.cs class
Thanks in advance.
Hi,
i kind of don't understand the question. you mean you want to send the whole data source back to the server? Probably it's best to send only the data that you have modified. If the latter is the case, there are several ways to do that. you can take all pending transactions, serialize the list and send it as part of a POST request, then load the transactions on the server, and update your database accordingly.
http://help.infragistics.com/Help/NetAdvantage/jQuery/2011.2/CLR4.0/HTML/igGrid_Updating.html
Hope it helps. Thank you
Angel
I am following the Batch Updates Example (http://help.infragistics.com/Help/NetAdvantage/jQuery/2011.2/CLR4.0/HTML/igGrid_Updating.html)
What happens if I have two grids in the same ASPX page?
How can I send the whole data of each grid back on the server side?
I mean, Is there just one HttpContext.Request.Form["ig_transactions"] per request? or there is a way to differenciate the ig_transactions variable
"ig_transactions"] per request? or there is a way to differenciate the ig_transactions variable
Thanks in advance
i would like to clarify that the whole grid data never gets send in those kind of scenarios. What is sent is only the transactions list for a particular grid, that is - the kind of data that is changed (cells or rows).
As for the ig_transactions, every grid can have an updateUrl (which can be the same for both grids, or for N number of grids on the page). You should invoke this - saveChanges(), to be precise - for every grid which you would like to update. Batch update in the sense of - update all transactions for all grids on the page, is not currently supported with one request/response only.
Let me know if this helps.
Thank you,