1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    15
    Vote Rating
    0
    fvinson is on a distinguished road

      0  

    Default Unanswered: grid edition and checkbox

    Unanswered: grid edition and checkbox


    Hi,
    I have a grid panel with editing plugin ;
    I want to have information when the user change data in the grid
    It's ok when column are text but when the column is checkbox I don't have the information when the user click and change

    Grid with Edition :
    Code:
    var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
            clicksToEdit: 1
        });
    var gridReaction = Ext.create('Ext.grid.Panel', {
            store: storeReaction,
            title: 'Reactions',
            ...
            columns: [{            {
                    text     : 'test',
                    flex     : 1,
                    sortable : true,
                    dataIndex: 'name',
                    editor: {
                        allowBlank: false
                    },
                },
                {
                    text     : 'hole',
                    width    : 100,
                    xtype     : 'checkcolumn',     
                    sortable : true,
                    dataIndex: 'hole',
                    editor: {
                        xtype: 'checkbox',
                        cls: 'x-grid-checkheader-editor'
                    },
                },
     
             ],
            height: 350,
            width: 600,
            plugins: [cellEditing],
            dockedItems: [{
                xtype: 'toolbar',
                items: [
                    DelReaction, ModifReaction
                ]
            }],
            viewConfig: {
                stripeRows: true,
                enableTextSelection: true
            }
        });
    
    // Event when the user change data :[/U]\
        gridReaction.on('edit', function(editor,e){
             alert("field : "+e.field+" oldvalue : "+e.originalValue+" newvalue : "+e.value);
        });
    Last edited by scottmartin; 26 Jun 2012 at 5:40 PM. Reason: Please format your code!

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You should be able to place a listener on your checkcolumn using checkchange(col,row,checked)

    Scott.

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