numberfield blur listener
Hey Guys,
I am using a numberfield xtype and I have a blur listener defined. What I want to try to do is, inside my blur event, I would want to get the value (name for instance) of another column in my gridpanel (which I have my numberfield defined).
Code:
this.grid = Ext.create('Ext.grid.Panel', { autoScroll: true,
height: 300,
forceFit: true,
store: this.store,
viewConfig: {
loadMask: false
},
// grid columns
columns:[{
id: "appName",
text: "Name",
dataIndex: 'name',
editor: {
allowBlank: false
},
width: 150
},{
text: "Memory",
dataIndex: 'resources.memory',
width: 70,
selectOnTab: true,
editor: {
xtype: 'combobox',
allowBlank: false,
selectOnTab: true,
store: [
['128M','128M'],
['256M','256M'],
['512M','512M'],
['1G','1G'],
['2G','2G']
],
lazyRender: true,
listClass: 'x-combo-list-small'
}
},{
text: "Instances",
dataIndex: 'instances',
width: 60,
editor: {
xtype: 'numberfield',
selectOnTab: true,
allowBlank: false,
step: 1,
minValue: 1,
maxValue: 19,
listeners : {
'blur': function(t, ev, b) {
// Ext.getBody().mask("Modifying Instance...");
// $.get("updateInstances/"+)
alert(t.lastValue);
},
'focus': function() {
console.log('I AM FOCUS');
}
}
}
Now if you look at the code, I want to be able to grab the value of "appName" (the first object inside the grid column) into my blur event on my numberfield.
Would appreciate any help!!