3 Sep 2010 5:20 AM #1
How to get JSON/XML from EditorGrid or Grid (or ListStore) to update rest service
There is my scenario
I have a restful service (json) which provides CRUD functionality. I could load Grid from JSON Rest ful service.
Now, I am using a Editor Grid and I change the fetch data and want to update the rest ful service.
So I will catch event on either Grid/EditorGrid or ListStore and from there I will manually update restful service.
The main thing here is I want to get the JSON or XML of the row (which I originally fetched from restful service), so I can change it and sent an update back to server.
If some one could guide on this, I could make my crucial decision of making GXT as my rendering framework.
3 Sep 2010 12:17 PM #2
Once you have the ModelData for the row from the event, you can convert it to JSON for your server using something like this:
new JSONObject(Util.getJsObject(mymodeldata, 10))
By rohitghatol in forum Ext GWT: DiscussionReplies: 4Last Post: 12 May 2012, 12:47 PM
By mirceat in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 26 Feb 2010, 3:02 AM
By gaquino in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 10 Dec 2009, 12:21 PM
By sebmiz in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 9 Dec 2008, 8:21 AM
By cappuccino in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 13 Oct 2008, 10:23 PM