<[EMAIL PROTECTED]> wrote: > Say you've got a DataGrid that uses a ComboBox as an > itemRenderer. You probably wouldn't want the logic that handles the > change event of the CB inside that itemRenderer component, you would > want it in the parent of the DataGrid
Ben, please forgive my lack of Flex experiance, but can I ask why not? shouldn't the ComboBox be seen as a self-contained component that should handle all it's own stuff? it's goal is to capture a users selection, the data of which is held as "public var CbSelection:String;". lets say you want to have a custom version of this that is a listbox - it has a property of "mandetoryItemsSelected" where "2" means that the user has to select 2 items. Surely the validation of that goes into the itemRenderer component, not the parent of the datagrid? The output of the component is a list of the two items, and the parent shouldn't care whether it's a comboBox or a group of CheckBoxes? or am I wrong? if so, please correct me. thanx barry.b -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/