Results 1 to 4 of 4

Thread: Edit PropertyGrid values

  1. #1
    k2sk8s
    Guest

    Question Edit PropertyGrid values

    Hey all,

    I'm trying to save edited PropertyGrid values in my store, but it doesn't work. What's wrong?
    Code:
    var buildingGrid = Ext.getCmp('buildingGrid');
    
    buildingGrid.on('propertychange', function(source, recordId, value, oldValue) { 
             var buildingStore = this.getStore('OE.store.Building');
             buildingStore.getAt(0).beginEdit();
             buildingStore.getAt(0).set(recordId, value);
             buildingStore.getAt(0).endEdit();
    });
    Many thanks in advance!

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    What do you mean it doesn't work? What doesn't work?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    k2sk8s
    Guest

    Default

    Editing a value of a field being the valueField of my combobox throws an undefined error. Seems as if I have to update my combobox after editing data. Long story short, I don't know how to do so!
    Code:
    {
            xtype: 'combo',
            id: 'selFloor',
            emptyText: 'Select Floor ...',
            store: 'OE.store.Floor',
            queryMode: 'local',
            displayField: 'floorName',
            valueField: 'floorId',
            editable: false
    }

  4. #4
    k2sk8s
    Guest

    Question

    Okay fixed it! I tried to access a non-existing record. What I still don't know is how to update the content of my combobox! Any help would be greatly appreciated!

    ... btw, another problem raised: getValue() returns display- instead of valueField! Solutions I found on the web refer to Ext JS 3.* (using hiddenName config). I'm using Ext JS 4! Any idea?

Posting Permissions

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