1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    30
    Vote Rating
    0
    vanderbill is on a distinguished road

      0  

    Default Select/Deslect Event

    Select/Deslect Event


    Hello

    I checkboxSelectionModel how i can take select/deselect checkbox???

    Code:
    sm = new CheckBoxSelectionModel<RamoData>();
    
                sm
                        .addSelectionChangedListener(new SelectionChangedListener<RamoData>() {
                            @Override
                            public void selectionChanged(
                                    SelectionChangedEvent<RamoData> se) {
                                Mensagem.messageDialog("A", "" + se.type);
                            }
                        });
    i tryed this...but dont fire..any1 know??? tks

  2. #2
    Ext User
    Join Date
    Dec 2008
    Posts
    34
    Vote Rating
    0
    Noggy is on a distinguished road

      0  

    Default


    Hi.

    Try this :
    Code:
     CheckBox checkBoxDefault = new CheckBox();
    
    checkBoxDefault.addListener(Events.OnClick, new Listener<BaseEvent>() {
                public void handleEvent(BaseEvent be) {
                    if (checkBoxDefault.getValue() == true)
                        Info.display("active","active");
                    else
                        Info.display("inactive","inactive");
                }
            });
    Greets,
    Noggy

  3. #3
    Ext User
    Join Date
    Oct 2008
    Location
    Atlanta ,GA
    Posts
    239
    Vote Rating
    0
    kolli is on a distinguished road

      0  

    Default


    you can also use the Events.Change event to take care of the check and uncheck of the checkBox,

  4. #4
    Ext User
    Join Date
    Dec 2009
    Posts
    49
    Vote Rating
    0
    siberian is on a distinguished road

      0  

    Default Old post but..

    Old post but..


    Here is my solution to catch select/deselect events and manage appropriately. In my case I call back in real-time since paginated grids are not so great for bulk updates sometimes.

    Code:
    sm = new CheckBoxSelectionModel<ModelData>() {
    			@Override
    			public void handleMouseDown(GridEvent e){
    				
    				if (isSelected(listStore.getAt(e.getRowIndex()))) {
    					ModelData userModel = (ModelData)listStore.getAt(e.getRowIndex());
    					deselect(userModel);
    					grid.mask("Removing user from Policy");
    					// Call deselect
    				} else {
    					select(e.getRowIndex(), true);
    					ModelData userModel = (ModelData)listStore.getAt(e.getRowIndex());
    					grid.mask("Adding user to Policy");
    					// Call select
    				}
    			}
    		};

Thread Participants: 3

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..."