1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    159
    Vote Rating
    0
    dizor is on a distinguished road

      0  

    Default [3.3.2] Grid + DirectStore = reverse save order

    [3.3.2] Grid + DirectStore = reverse save order


    I noticed that save function from DirectStore send data in reverse order. In grid I add rows in this order:

    X. Position One
    X. Position Two
    X. Position Three

    ... and when saving we get in POST array (ex. PHP): {Position Three, Position Two, Position One} so we have:

    3. Position One
    2. Position Two
    1. Position Three

    It seems to me that problem is in "save" function of DirectStore, so i added this:

    Code:
    ...
    var rs = [].concat(this.getModifiedRecords());
    rs.reverse();
    ..
    This is bug or I don't understand something? Anyone?

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Posts
    159
    Vote Rating
    0
    dizor is on a distinguished road

      0  

    Default


    Anybody? This is very important to me. I do not know if I am wrong or that this is a bug.