1. #1
    Sencha User sunrong's Avatar
    Join Date
    Jun 2010
    Posts
    35
    Vote Rating
    0
    sunrong is on a distinguished road

      0  

    Question remoteSort does not work.

    remoteSort does not work.


    hi all,
    my code is here.

    var jr = new Ext.data.JsonReader({
    root: 'topics',
    totalProperty: 'totalCount',
    id: 'user_id'
    },[
    'user_id', 'username', 'real_name', 'telephone', 'station_status', 'depts'
    ]);

    var ds = new Ext.data.Store({
    // proxy : new Ext.data.HttpProxy({url:'index.php?model=user&action=list&'}),
    url:'index.php?model=user&action=list',
    reader: jr,
    remoteSort: true
    });
    ds.setDefaultSort('username', 'ASC');


    i have set remoteSort, but date browser gets is not sortted? i can not find error, so anyone help me fix it , thanks.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Your server must perform the sorting. That's what "remote" means.

  3. #3
    Sencha User sunrong's Avatar
    Join Date
    Jun 2010
    Posts
    35
    Vote Rating
    0
    sunrong is on a distinguished road

      0  

    Default


    I see.
    Thanks a lot.

Similar Threads

  1. paging and remoteSort
    By saubua in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 14 Oct 2011, 12:08 PM
  2. remoteSort=true on JsonStore don't work
    By soffio99 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 19 Apr 2010, 11:28 AM
  3. remoteSort with grid issues
    By vtmoren in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 4 Sep 2009, 10:58 AM
  4. gridPanel remoteSort does not work
    By alexk in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 22 Aug 2008, 6:55 AM
  5. remoteSort
    By gwu in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 31 Jan 2008, 2:51 PM

Thread Participants: 1