Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User treblereel's Avatar
    Join Date
    Mar 2010
    Location
    Moscow,Russia
    Posts
    67
    Vote Rating
    1
    treblereel is on a distinguished road

      0  

    Default TreeGrid: getSelectedItem problem, always unmodified record

    TreeGrid: getSelectedItem problem, always unmodified record


    Hi All,

    I have a problem: after completeEdit event tree.getSelectionModel().getSelectedItem() always returns unmodifed record.

    PHP Code:
     editing.addCompleteEditHandler(new CompleteEditHandler<BaseProxy>(){        @Override        public void onCompleteEdit(CompleteEditEvent<BaseProxyevent) {            CountryProxy c =  (CountryProxy)tree.getSelectionModel().getSelectedItem();            System.out.println(c.getName());        }    }); 
    any help?
    ps: gxt = 3.0.1

  2. #2
    Sencha User treblereel's Avatar
    Join Date
    Mar 2010
    Location
    Moscow,Russia
    Posts
    67
    Vote Rating
    1
    treblereel is on a distinguished road

      0  

    Default


    try this:

    store.setAutoCommit(false);

    PHP Code:
    editing.addCompleteEditHandler(new CompleteEditHandler<BaseProxy>(){
            @Override        public void onCompleteEdit(CompleteEditEvent<BaseProxy> event) {            CountryProxy c =  (CountryProxy)tree.getSelectionModel().getSelectedItem();            ValueProvider<? super BaseProxyStringcc1.getValueProvider();            String s tree.getStore().getRecord(c).getValue(v).toString();            System.out.println(c.getName() + " " s);        }    });

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Marking as closed based on discussion in IRC leading to this way of using Store and Record.

Thread Participants: 1

Tags for this Thread

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