1. #1
    Ext User
    Join Date
    Dec 2007
    Posts
    4
    Vote Rating
    0
    DODOT is on a distinguished road

      0  

    Default Help In AfterEdit

    Help In AfterEdit


    Hi,

    Can anyonw please help me?
    I have problem to displaying the new modified value in the EditorGridPanel if I am using 'AfterEdit'.

    Below are my sample code

    grid.on('afteredit', function(e) {
    var modRec = e.record;

    //Avoid Duplicate Entry
    var id1 = modRec.get('id');
    var tempRec = new Array();
    var ii = 0;

    if (modRebDS.getCount() > 0){
    for (var j=0; j < modRebDS.getCount(); j++){
    var modRecInit = modRebDS.getAt(j);
    var id2 = modRecInit.get('id');
    if(id1 == id2){
    tempRec[ii] =modRecInit;
    ii++;
    break;
    }
    }

    if (tempRec.length > 0){
    for (var p = 0; p < tempRec.length; p++){
    modRebDS.remove(tempRec[p]);
    }
    }
    }

    modRebDS.add(modRec);
    });

    If I take out the last line, it working fine.
    But If I put it the new value is not shown in the Grid.
    Can somebody please explain why?

    Thanks a lot for the help

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    wrong forum - this GWT version of ExtJS only

  3. #3
    Ext User
    Join Date
    Dec 2007
    Posts
    4
    Vote Rating
    0
    DODOT is on a distinguished road

      0  

    Default


    Hi, Thanks for the info.. I am am new here

Thread Participants: 1

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