Results 1 to 2 of 2

Thread: EditorGridPanel not editing

  1. #1
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating

    Default 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?

    xtype      : "editorgrid",
    id         : "addTableFieldsGrid",
    anchor     : "100% 100%",
    stripeRows : true,
    viewConfig : {
    	forceFit : true
    selModel   : new Ext.grid.RowSelectionModel({
    	singleSelect : true
    store      : new{
    	reader   : new{}, fieldRecord),
    	proxy    : new[]),
    	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"
    	text    : "Remove Field",
    	handler : function() {
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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
    Dresden, Germany
    Vote Rating


    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:
    var fieldRecord =[
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts