Hi All,
We are using WebDataGrid 11.1.20111.2020 with VS 2010.
There are some pages in which the WebDataGrid with RowEditTemplate (RET) is inside a UpdatePanel.
We could use RET to add new record to the WebDataGrid. But when try to edit that record, the save function just work for the first time. At the second time when Saving that record, we always get following error message like this "Invalid JSON primitive:|0|001......"
If removing the UpdatePanel, it works fine but we need UpdatePanel to refresh the Grid after saving.
Note that we got this error after upgrade the project from VS 2005/Infragistics 2010.3 to VS2011/Infragistics 2011.1. It worked stable on old version.
Please help to resolve.
Thanks,
Nguyen Huu Chu - VNETSOFTWARE
Hi All, I have same issue above. I have a RowEditTemplate that contains UpdatePanel and 'Save' button. When I try to perform 'Save' more than 2 times, then javascript error is "invalid json primitive ....." Please take a look at simple sample to see this issue and help me resolve it.Thanks,Trung
Hello Guys,
It’s took me a while to figure out what happens in this sample, so first of all if you use the ajax capability of the grid you need to avoid using the updatepanels. I’ve built a sample that shows how to use the grid with Manual CRUD operations. RET is used to update the rows. You can click on a row selector from the grid to bring out the template, make some changes and press ok button from the template. This will commit the change to the server using ajax afterwards the updated rows is saved in xml file.
You can download the sample from here:
http://forums.infragistics.com/members/RMinchev/files/WDG/WDG_5F00_ManualCrud.zip.aspx
Hope that helps a bit.