Results 1 to 3 of 3

Thread: update edited row

  1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    26
    Answers
    2
    Vote Rating
    0
      0  

    Default 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 - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      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 human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    64
    Vote Rating
    4
      0  

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •