1. #1
    Sencha User
    Join Date
    Jun 2010
    Location
    Germany near cologne
    Posts
    21
    Vote Rating
    0
    Mebel is on a distinguished road

      0  

    Default Grid with checkbox. How to catch OnChange event.

    Grid with checkbox. How to catch OnChange event.


    Hello,

    when i use this code to add a checkbox in my Grid how it possible to get the onChange event from the checkbox ? I have tried to add listener on the celleditor, checkbox and on the grid. Also i have override completeEdit but i cant catch the event.

    Code:
    CheckColumnConfig checkColumn = new CheckColumnConfig("indoor", "Indoor?", 55);  
    CellEditor checkBoxEditor = new CellEditor(new CheckBox());  
    checkColumn.setEditor(checkBoxEditor);  
    configs.add(checkColumn);
    regards
    me

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    20
    Vote Rating
    0
    gaspo100 is on a distinguished road

      0  

    Default


    I use Events.CellMouseUp

    PHP Code:
    List<ColumnConfigconfigs = new ArrayList<ColumnConfig>();
    configs.add(new ColumnConfig("Column0""Text Col 0"100));
    configs.add(new ColumnConfig("Column1""Text Col 1"100);

    CheckColumnConfig checkColumn = new CheckColumnConfig("Column2""Check Col 2"100);
    CellEditor checkBoxEditor = new CellEditor(new CheckBox());
    checkColumn.setEditor(checkBoxEditor);
    configs.add(checkColumn);

    ListStore store = new ListStore<MyModel>();

    Grid grid = new Grid<MyModel>(store, new ColumnModel(configs));
    grid.addPlugin(checkColumn);
    grid.addListener(Events.CellMouseUp, new Listener<GridEvent<MyModel>>() {
      @
    Override
      
    public void handleEvent(GridEvent<MyModelbe) {
        if (
    be.getColIndex() == 2) {
          
    // use be.model to read status of the check box column
        
    }
      }
    }); 

Similar Threads

  1. How to i catch doubleclick event on gxt grid?
    By sinthamethar in forum Ext GWT: Help & Discussion (1.x)
    Replies: 9
    Last Post: 4 Feb 2012, 5:52 PM
  2. Replies: 6
    Last Post: 26 Jul 2010, 6:24 AM
  3. onChange event for grid?
    By ultramedia in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Dec 2009, 2:56 AM
  4. Getting ext grid with select Onchange event
    By dpn in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 15 Dec 2009, 9:10 AM
  5. Ext.grid.ColumnModel with editor and onchange event.
    By silver92 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 24 Oct 2008, 7:21 AM

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