Hello all,
I have a DataGrid that allows users to enter in data in the same
manner as an excel spreadsheet. I am using custom ItemEditors for
most of the columns.
When a user lands on the view with the DataGid I want the first cell
to be selected and opened for editing. In this case the cell has a
custom itemRenderer with rendererIsEditor set to true.
[CODE]
<mx:DataGridColumn dataField="title" headerText="Title"
sortable="false" editable="true" rendererIsEditor="true"
itemRenderer="com.name.view.editor.TitleItemEditor"
editorDataField="returnStr"/>
[/CODE]
The itemRenderer is a simple TextInput inside a HBox that
implements="mx.core.IFactory".
I have tried both:
myDG.editedItemPosition = {columnIndex:0, rowIndex:0}
myDG.selectedIndices = [0,0];
These commands set the correct row, but they do not open up the 'edit'
state of the cell. What am I missing? How can I replicate the same
event that happens when a user clicks on the first cell of the first row?
thanks
--jason