1. #1
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default EditorGridPanel not editing

    EditorGridPanel not editing


    The code I have works in a browser but not in my Air app. It displays and adds rows but does not allow editing. I put code from one of the examples in and it does not work either. Anything I have to do in order to get the editing to work in an Air app?

    Code:
    xtype      : "editorgrid",
    id         : "addTableFieldsGrid",
    anchor     : "100% 100%",
    stripeRows : true,
    viewConfig : {
    	forceFit : true
    },
    selModel   : new Ext.grid.RowSelectionModel({
    	singleSelect : true
    }),
    store      : new Ext.data.Store({
    	reader   : new Ext.data.JsonReader({}, fieldRecord),
    	proxy    : new Ext.data.MemoryProxy([]),
    	sortInfo : {field: "name", direction: "ASC"}
    }),
    columns    : [
    	{header : "Name", mapping : "name", editor: new Ext.form.TextField()},
    	{header : "Type", mapping : "type", editor: new Ext.form.TextField()}
    ],
    buttons    : [{
    	text    : "Add Field",
    	handler : function() {
    		var store = this.ownerCt.ownerCt.getStore();
    		store.insert(0, new fieldRecord({
    			name : "New Field",
    			type : "New Field"
    		}));
    		this.ownerCt.ownerCt.startEditing(0,0);
    	}
    },{
    	text    : "Remove Field",
    	handler : function() {
    		
    	}
    }]
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    19
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    I cannot reproduce it (using my ext-air adapter). It works for me, both adding and editing.
    My fieldRecord (it's not in your code) is:
    Code:
    var fieldRecord = Ext.data.Record.create([
        {name:'name'},
        {name:'type'}
    });
    Just one thing. Column definitions use dataIndex, not mapping!
    Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

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