1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    25
    Vote Rating
    0
    Answers
    2
    tmchedlishvili is on a distinguished road

      0  

    Default Unanswered: update edited row

    Unanswered: update edited row


    hello friend
    may be my problem is very easy for you but i can't afford..
    i'm getting datas from row and showing in other panel's fields
    my goal is edit this datas and show edited datas in grid ,please give me some advice, i know that it needs commit() function but..


    mu code :

    Code:
    var selModel = persongrid.getSelectionModel();
    var selectedRecords = selModel.getSelection();
    
    
    console.log(selectedRecords[0].data)
    me.activeRecord = selectedRecords;
    
    
    a=selectedRecords[0].data;
    var user = Ext.create('SFG.model.Person',a );
    me.getForm().loadRecord(user);



    but it needs continue please help me..

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,052
    Vote Rating
    215
    Answers
    484
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Are you wanting to take a record from a store and load it to a form and have changes in that form reflected back in the source record?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    64
    Vote Rating
    4
    team.avesta is on a distinguished road

      0  

    Default


    Your grid and form should have same store so that any changes made in form will be reflected in grid panel.

Thread Participants: 2

Tags for this Thread