1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    Satapathy is on a distinguished road

      0  

    Default Row editor firing an insert instead of update the record

    Row editor firing an insert instead of update the record


    Hi,
    I am new to Ext JS and need your help for the same problem
    I am using the Ext JS version 3.3.1. I have been struggling record update problem in row editor.
    I am doing updates/insert on some records using the RowEditor plugin. Updates/Insert of new record is working fine upto
    few minutes. But after few mins suddenly grid is not refershing, store is not loading all data from the database.
    If I click on a record, its roweditor is opening. I am trying to modify the record. But, unexpectdly I could see instead of
    updating the record, it is inserting new record(different id) which is a duplicate record into database.
    And as I have already problem of grid not refreshing (after few mins) I cannot see the duplicate record until I manually
    load the screen again. Code looks like:

    var store= new Ext.ux.data.PagingJsonStore({
    autoLoad: true,
    autoDestroy: true,
    autoSave:false,
    timeout:60000,
    autoload: {params: {start: 0, limit: PAGE_SIZE}}

    //After every updates:
    grid.getStore().reload();
    grid.getView().refresh();
    So, need your help how to refresh the store/grid automatically after every update and how to avoid duplicate record insert into database?

    Thanks in advance.
    Please help

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    Satapathy is on a distinguished road

      0  

    Default Row editor firing an insert instead of update the record in EXTJS 3.3.1

    Row editor firing an insert instead of update the record in EXTJS 3.3.1


    Hello mitchellsimoens,

    Help me please for the above problem.

    Thanks in advance

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar