This one is really odd...
I have a DataGrid, which has the selectedItem of another grid (parent-grid) as a dataProvider. The "child"-grid has a checkbox control as renderer and editor. It does perform nicely in the sense that when I change the selection of the "parent"-grid, all sub-records with selected boxes (data is set to "true") appear as expected, i.e. checked.
Now, when I check/uncheck items in the child-list the data bound to the parent-grid seems to get "mixed up" (checked items of this and other child-records thereafter appear checked or unchecked at random). The odd thing is, if I change the renderer to TextInput and edit the checkbox items as texts ("true" and "false"), everything is honkey-dory and remains that way.
Here the 2 variants of the grid column in question. First as TEXTINPUT which works fine...
<mx:DataGridColumn editable="true" itemRenderer="mx.controls.TextInput" editorDataField="text" rendererIsEditor="true" width="65" headerText="Member" dataField="member" textAlign="center" />
And here with a checkbox control that creates the issue...
<mx:DataGridColumn editable="true" itemRenderer="mx.controls.CheckBox" editorDataField="selected" rendererIsEditor="true" width="65" headerText="Member" dataField="member" textAlign="center" />
Any ideas... ? Like the aliens in Toy Story "I will be eternally grateful" for your advise ;-)
Still having fun, though...
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

