1. #1
    Sencha User
    Join Date
    Nov 2007
    Location
    France
    Posts
    135
    Vote Rating
    0
    khatuido is on a distinguished road

      0  

    Default Where update the record in a livegrid?

    Where update the record in a livegrid?


    I got a GridPanel and an Object Record in fact i want update the record in my grid with the record saved in js.

    So i did this in my View "this.fireEvent("rowupdated", this, key, record);"
    But didn't work.
    I don't know how and where update my Record loaded by my variable Record.

    NB: I use the livegrid.

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Location
    France
    Posts
    135
    Vote Rating
    0
    khatuido is on a distinguished road

      0  

    Question


    In fact i know we must update the record of the store.

    So i can do this :

    HTML Code:
    var myRecordSaved = /* backup of one record */;
    // The record to update by myRecordSaved
    var myRecordStore = this.ds.getAt(key);
    myRecordStore.set('label', myRecordSaved .get("label"));
    But me i want just replace my record of my store by myRecordSaved so do something like that:
    HTML Code:
    myRecordStore = myRecordSaved;
    Is there a way to do it? Replace a record of my store by a record in javascript?

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Location
    France
    Posts
    135
    Vote Rating
    0
    khatuido is on a distinguished road

      0  

    Default


    nobody can help me?