PDA

View Full Version : Make grid column editable onclick of button



amanind
16 Nov 2010, 3:17 AM
Hi

I am using Gridpanel and I want to make all the columns of the grid become editable when use click on Edit button.
How to do this, any help please

thanks
aMaN

raj_plays
16 Nov 2010, 5:56 AM
Use Ext.ux.grid.RowEditor

amanind
18 Nov 2010, 1:11 AM
Sorry I didn't understand
I want when user click on "Edit" button then only all the values in column become editable except first column because it have labels

raj_plays
18 Nov 2010, 2:29 AM
To do that your grid has to be configured with a RowEditor plugin
http://edspencer.net/2009/09/using-the-extjs-row-editor.html/comment-page-1

amanind
18 Nov 2010, 2:41 AM
I am already using one plugin, how to use second
here is my code



plugins: [
new Ext.ux.grid.RowEditor(),
new Ext.ux.grid.ColumnHeaderGroup({
rows: [
[{
// no header
},
{
header: '(Per Investment Committee Book)',
align: 'center',
colspan: 2
},
{
header: '(Per Final Underwriting/Magic Page)',
align: 'center',
colspan: 2
}]
]
})
]