Feb 23, 2010, 10:50 PM
[CLOSED] [1.0] EditableGrid Apply to selection apply to all
I have setup a headerrow with textbox,etc for editing in my grid view. And a button bar that has an apply to all button and apply to selection.
I want to use the value in the headerrow for a given column to apply that value to all the rows editors for that column in the EDITABLEGRID.
i was trying to use some javascript like this below to find the CellEditor and set its value. It appears to get set but never rendered on screen. I need some help understanding how to do this. (i am not really trying to set the STORE at this point either. I would like the store not to get updated until the user hits a save button. And then I want to process this on the server side.)
I want to use the value in the headerrow for a given column to apply that value to all the rows editors for that column in the EDITABLEGRID.
i was trying to use some javascript like this below to find the CellEditor and set its value. It appears to get set but never rendered on screen. I need some help understanding how to do this. (i am not really trying to set the STORE at this point either. I would like the store not to get updated until the user hits a save button. And then I want to process this on the server side.)
function setSelection(grid)
{
var rows = grid.getRowsValues({selectedOnly : selection});
var i=0;
for(i=0;i<rows.length;i++)
{
grid.getColumnModel().getCellEditor(1,i).setValue(col1HeaderEditor.getValue());
}
}