1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    7
    Vote Rating
    0
    missg is on a distinguished road

      0  

    Default How can I add multiple checkbox in editorgridpanel?

    How can I add multiple checkbox in editorgridpanel?


    I'm using extjs 3.4 and I need to add multiple checkbox in editorgridpanel.

    I can add checkbox more than one I can by Ext.ux.grid.CheckColumn object but when I add 'checkchange' listeners it not working.

    Here is my code ..

    ...
    <script type="text/javascript" src="../ux/CheckColumn.js"></script>
    ...
    ...
    var cNameColumn = new Ext.grid.CheckColumn({
    header: 'Change Name',
    dataIndex: '_flag1',
    listeners : {
    checkchange : function(column, recordIndex, checked) {
    alert(checked);

    }
    }
    });

    var cDescColumn = new Ext.grid.CheckColumn({
    header: 'Change Desc',
    dataIndex: '_flag2',
    listeners : {
    checkchange : function(column, recordIndex, checked) {
    alert(checked);

    }
    }
    });


    //Column Model
    var cm = new Ext.grid.ColumnModel( {
    defaults: {
    sortable: true
    },
    columns: [
    cNameColumn,
    cDescColumn,
    { header: "ID", dataIndex: 'id', align: 'center', width: 40 },
    { header: "Name", dataIndex: 'name', editor: new Ext.form.TextField({ allowBlank: false, minValue: 0, maxValue: 30, maxLength: 30 }) },
    { header: "Description", dataIndex: 'description', editor: new Ext.form.TextField({ allowBlank: false, minValue: 0, maxValue: 30, maxLength: 30 }) }

    ]
    });

    var store = new Ext.data.Store({
    id: 'store',
    autoLoad: true,
    proxy: new Ext.data.HttpProxy({
    url: 'test_proxy.php',
    method: 'POST'
    }),
    baseParams:{
    task: "get_member"
    },
    reader: new Ext.data.JsonReader({
    root: 'results',
    totalProperty: 'total',
    id: 'id'
    },[
    {name: 'id', type: 'string', mapping: 'ID'},
    {name: 'name', type: 'string', mapping: 'NAME'},
    {name: 'description', type: 'string', mapping: 'DESCRIPTION'}

    ])
    });


    var editorgrid = new Ext.grid.EditorGridPanel({
    id: 'editorgrid',
    store: store,
    cm: cm,
    renderTo: 'editor-grid',
    width: 600,
    height: 300,
    title: 'Demo',
    frame: true,
    clicksToEdit: 1
    });

    Please help ...

  2. #2
    Ext JS Premium Member saJoshua's Avatar
    Join Date
    Nov 2007
    Location
    South Africa
    Posts
    521
    Vote Rating
    5
    saJoshua is on a distinguished road

      0  

    Default


    isnt this a working example of a checkbox grid column? try listen rather on cellclick of the grid.

    http://dev.sencha.com/deploy/ext-3.4...edit-grid.html

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    5
    Vote Rating
    0
    muliyono.lu is on a distinguished road

      0  

    Default


    Your problem is the listeners doesn't work
    Is it right?
    You could see the example from this
    HTML Code:
    http://dev.sencha.com/deploy/ext-3.4.0/examples/grid/grid-plugins.html
    in section grid 4

  4. #4
    Sencha User
    Join Date
    Jan 2013
    Posts
    1
    Vote Rating
    0
    Sandhya0729 is on a distinguished road

      0  

    Default How can I create a select all checkbox in header for the checkcolumn xtype

    How can I create a select all checkbox in header for the checkcolumn xtype


    Hi,

    I am using the checkcolumn xtype for multiple columns in my grid. I want to provide the user an option to selectall for a these columns.

    found an example for CheckBoxSelectionModel(), but I don't want to select all rows, but I just want to selectall cells in a specific column.

    I am using extjs 3.4.

    I would really appreciate if someone could help me with creating a single column selectall.

    Thanks,
    Rano

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