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
    3
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi