Hi!
I use jqGrid in an environment with RESTful Service written in Visual Studio 2008 for .NET 3.5 SP1. Input and output of all functions of the service is in JSON format. I use navGrid to add/edit/delete records with respect of Form Editing.
My problem is that functions editGridRow and delGridRow send data in urlencoded format (like typical form summit) and not in JSON format. One can change mtype property from “POST” to “PUT” or “DELETE“, but I found no way to change format of sending data to JSON. Microsoft RESTful Services supports only two formats: XML and JSON and no form submit format. Moreover, “DELETE” send some data in the request body, which should not be.
At the beginning I used additional .NET Web-Page (outside of my RESTful Service) to receive data posted from jqGrid and dispatch it to RESTful Service and returns the result from RESTful Service back to jqGrid.
Later I made some small changes in grid.formedit.js which extend jqGrid to support JSON format, better support REST and makes communication easer. I hope these changes can be helpful for other peoples, so I send my changes with some comments to you as a feature request with suggestion to implement there in the next release of
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top