1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    57
    Vote Rating
    1
    MickeyMiner is on a distinguished road

      0  

    Question SelectionChangedListener is not fired in EditorGrid with GroupingView

    SelectionChangedListener is not fired in EditorGrid with GroupingView


    Hi,

    I have a GroupingView behind my EditorGrid. I have added an SelectionChangedListener, but it never gets fired.

    PHP Code:
    GroupingView view = new GroupingView();
    view.setGroupRenderer(new GridGroupRenderer() {
       public 
    String render(GroupColumnData data) {
          
    String l data.models.size() == "Mail" "Mails";
          return 
    data.group " (" data.models.size() + " " ")";
       }
    });

    EditorGrid<Mailgrid = new EditorGrid<Mail>(storecm);
    grid.setView(view);
    grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<Mail>() {
        @
    Override
        
    public void selectionChanged(SelectionChangedEvent<Mailse) {
           
    curentMail se.getSelectedItem();
        }
    }); 
    What am I doin wrong?

    Cheers,

    mm

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Change the selectionmodel to GridSelectionModel. Else yuor code does not even make sense.

  3. #3
    Sencha User
    Join Date
    Dec 2007
    Posts
    57
    Vote Rating
    1
    MickeyMiner is on a distinguished road

      0  

    Default


    Thanx!

    PHP Code:
    grid.setSelectionModel(new GridSelectionModel<Mail>()); 
    awkward mistake...

    mm

Similar Threads

  1. Mix groupingView and EditorGrid
    By rakir in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 28 Sep 2009, 4:10 AM
  2. Replies: 10
    Last Post: 9 Apr 2009, 3:32 AM
  3. SelectionChangedListener ClassCastException
    By micgala in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 12 Dec 2008, 3:38 AM
  4. Replies: 0
    Last Post: 13 Aug 2008, 11:42 AM
  5. EditorGrid with GroupingView
    By gslender in forum Ext GWT: Bugs (1.x)
    Replies: 0
    Last Post: 6 Aug 2008, 5:56 PM

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