Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    4
    Vote Rating
    0
    platinas is on a distinguished road

      0  

    Default [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:
    Code:
    {"action":"SystemUserModel","method":"read","data":[{"limit":25,"sort":"[{\"property\":\"username\",\"direction\":\"ASC\"}]"}],"type":"rpc","tid":6}
    Other paramters are all correct, but the "sort" property is passed as a json string rather than json object.
    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.

  2. #2
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    928
    Vote Rating
    48
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    You may be interested in my post here.

    Regards,
    Westy

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,003
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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!

Similar Threads

  1. Replies: 5
    Last Post: 3 Jun 2011, 4:25 AM
  2. [FIXED-EXTJSIV-188] Errors closing grid.
    By James Goddard in forum Ext:Bugs
    Replies: 7
    Last Post: 7 Apr 2011, 8:12 AM
  3. [FIXED-EXTJSIV-194] Grid Scroll Issues
    By James Goddard in forum Ext:Bugs
    Replies: 2
    Last Post: 1 Apr 2011, 11:05 AM
  4. Replies: 1
    Last Post: 17 Mar 2011, 4:21 PM
  5. [FIXED-672] DirectProxy Issue and Fix
    By timothy in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 4 Mar 2010, 9:37 AM

Thread Participants: 2