-
27 Mar 2011 3:38 AM #1
[FIXED-EXTJSIV-390] - Sort on Grid with DirectProxy
[FIXED-EXTJSIV-390] - Sort on Grid with DirectProxy
When I created a GridPanel with DirectProxy, and with remoteSort: true, if the sort column is clicked, the json of the RPC call to the server looks like:
Other paramters are all correct, but the "sort" property is passed as a json string rather than json object.Code:{"action":"SystemUserModel","method":"read","data":[{"limit":25,"sort":"[{\"property\":\"username\",\"direction\":\"ASC\"}]"}],"type":"rpc","tid":6}
So on the server side it will be interpreted as a String and cannot deserialize the "property" and "direction" property of the sort.
I think it is a bug: "sort" property should be passed as json object.
-
28 Mar 2011 3:03 AM #2
-
28 Mar 2011 5:38 AM #3
Will be fixed in the next release, thanks.
Similar approach as @westy, but I created a template method for subclasses to override instead of encoding/decoding the value.Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-EXTJSIV-306] Model with DirectProxy does not send id on load()
By robboerman in forum Ext:BugsReplies: 5Last Post: 3 Jun 2011, 4:25 AM -
[FIXED-EXTJSIV-188] Errors closing grid.
By James Goddard in forum Ext:BugsReplies: 7Last Post: 7 Apr 2011, 8:12 AM -
[FIXED-EXTJSIV-194] Grid Scroll Issues
By James Goddard in forum Ext:BugsReplies: 2Last Post: 1 Apr 2011, 11:05 AM -
[FIXED-EXTJSIV-158] Dynamic Form, Grid and Charts example stall 1+ second
By SebTardif in forum Ext:BugsReplies: 1Last Post: 17 Mar 2011, 4:21 PM -
[FIXED-672] DirectProxy Issue and Fix
By timothy in forum Ext 3.x: BugsReplies: 4Last Post: 4 Mar 2010, 9:37 AM


Reply With Quote