priyapratheep
10 Apr 2012, 4:06 PM
Hi,
The below is part of my code
var cm = new Ext.grid.ColumnModel([
{id: 'screenname' ,header: "Band Name" ,dataIndex: 'screenName' ,width: 120 ,editable:false, editor: new Ext.form.TextField({allowBlank: false})}
tbar: [{
text: 'Add New Band',
iconCls:'icon-plus',
handler: function() {
var loc = new bandObj({
id: '-1',
screenName: 'Enter a new Band...',
When i click the 'icon-plus' icon a new line will append in the grid with id -1.
What is want is screenName field should be enabled when a new line is added. otherwise the screenName field should be disabled.
That is screenName field should be enabled for the new line (adding a record) and disabled for the rest(no updation is allowed)
I am usingExt.grid.EditorGridPanel
I am new bie to EXTS. started three week before.
Pls help
The below is part of my code
var cm = new Ext.grid.ColumnModel([
{id: 'screenname' ,header: "Band Name" ,dataIndex: 'screenName' ,width: 120 ,editable:false, editor: new Ext.form.TextField({allowBlank: false})}
tbar: [{
text: 'Add New Band',
iconCls:'icon-plus',
handler: function() {
var loc = new bandObj({
id: '-1',
screenName: 'Enter a new Band...',
When i click the 'icon-plus' icon a new line will append in the grid with id -1.
What is want is screenName field should be enabled when a new line is added. otherwise the screenName field should be disabled.
That is screenName field should be enabled for the new line (adding a record) and disabled for the rest(no updation is allowed)
I am usingExt.grid.EditorGridPanel
I am new bie to EXTS. started three week before.
Pls help