Results 1 to 5 of 5

Thread: RowEditPlugin

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    41
    Vote Rating
    -1
      0  

    Default RowEditPlugin

    hi
    I added a RowEditPlugin to my grid panel and I also add an edit event :
    onGridroweditingpluginEdit : function ( editor , e, options) {


    }

    I need some peace of code in my function to add e.recorde to my data file using store . actually I have no idea about methods I can use in my function

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,101
    Answers
    113
    Vote Rating
    100
      0  

    Default

    you can add a record to the store like this:

    Code:
     store.add(e.record);

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    41
    Vote Rating
    -1
      0  

    Default

    tnx for reply

    I add store.add(e.record)
    but when I update some fields and refresh the page nothing changed

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    41
    Vote Rating
    -1
      0  

    Default

    I should add
    e.store.add(e.record)
    but I got this error :
    Uncaught TypeError: Cannot read property 'internalId' of undefined
    do you have any idea about this error

  5. #5
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,101
    Answers
    113
    Vote Rating
    100
      0  

    Default

    store.add() was just for example. you have to replace it with your store. After add(), if you have store's autoSync() property set to true, it will send a request to your server. If not, you have to call store.sync() after store.add().

    But first, you have to be able to add the record to the store. I dont know where your error is coming from.

Posting Permissions

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