Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  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,862
    Answers
    651
    Vote Rating
    438
    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