Feb 24, 2010, 8:44 PM
[CLOSED] Programatically start editing and set value of editor
Currently I have a grid with command that executes an Ajax Method. When the Ajax Method returns the value I want to start editing the grid and update the editor to the value returned by the Ajax Method.
Here is the javascript that is used to handle the command.
Is there a way to edit the record in the store directly without using an editor?
Thanks.
Here is the javascript that is used to handle the command.
function HandleCommands(command, record) {
var value = Coolite.AjaxMethods.GetValue(record.id);
var recordRowIndex = #{GridPanel}.store.indexOf(record);
#{GridPanel}.getColumnModel().getCellEditor(1,recordRowIndex).setValue(value);
#{GridPanel}.startEditing(recordRowIndex, 1);
}
The editor is set to the correct value however when editor is activated the new value isn't there. Is there another function that I should use?Is there a way to edit the record in the store directly without using an editor?
Thanks.