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
    62
    Answers
    6
    Vote Rating
    5
    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
    62
    Answers
    6
    Vote Rating
    5
    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

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