1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    16
    Vote Rating
    0
    TWEESTY is on a distinguished road

      0  

    Default Answered: Editor Column into Ext.grid.Panel

    Answered: Editor Column into Ext.grid.Panel


    Hello all!

    I am new in the community and I don't understand how to make a column editable.


    Here, the beginning of my code, I want that my column "Nom" will be editable :

    Code:
    Ext.define('GDStock.view.vendor.TableProduitsVente', { 	extend: 'Ext.grid.Panel',
     	xtype : 'tableproduitsvente',
     	store: 'ProduitsVente',
     	region: 'north',
     	
     	initComponent: function(){
     		Ext.apply(this, {
     			features: [
     				{
     					id: 'sum',
     					ftype: 'summary'
     				}
     			],
     			columns: [
    		 		{
    		 			text: 'Nom',
    		 			flex: 4,
    		 			dataIndex: 'nom',
    		 			editor: 
    		 				{
    		 					xtype: 'combo', 
                            	store: 'Produits',
                                displayField:'nom',
                                valueField: 'nom',
                                mode: 'local',
                                typeAhead: false,
                                triggerAction: 'all',
                                lazyRender: true,
                            }
    		 		},

  2. you have to put
    requires: 'Ext.grid.plugin.CellEditing',
    plugins: ['cellediting']

  3. #2
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    64
    Vote Rating
    5
    Answers
    6
    AssetWorks is on a distinguished road

      1  

    Default


    you have to put
    requires: 'Ext.grid.plugin.CellEditing',
    plugins: ['cellediting']

  4. #3
    Sencha User
    Join Date
    Mar 2013
    Posts
    16
    Vote Rating
    0
    TWEESTY is on a distinguished road

      0  

    Default


    Thanks!!!!

  5. #4
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    64
    Vote Rating
    5
    Answers
    6
    AssetWorks is on a distinguished road

      0  

    Default


    You are welcome.
    Please mark best answer to help others out with similar questions and to show that this thread needs no more attention.

Thread Participants: 1