jqGrid adding new row with XML Data
Posted
by mahr.g.mohyuddin
on Stack Overflow
See other posts from Stack Overflow
or by mahr.g.mohyuddin
Published on 2009-08-08T17:07:17Z
Indexed on
2010/03/20
18:11 UTC
Read the original article
Hit count: 842
Hi Everyone,
I am using jQGrid in my ASP.NET MVC application with add row feature. My problem is I have to save XML data in some of the row fields. But while posting the new row with some fields having plain xml, to server I get Internal server error. By default jqGrid perhaps expects json or text data to be posted on server while adding a new row.
I used beforeSubmit method for workaround to convert xml first to json and then send to server, but while converting json back to xml I lose the orginal structure of the xml. FYI: I used JsonReaderWriterFactory on server to convert it back.
Your help will be highly appreciated.
Thanks.
© Stack Overflow or respective owner