开发者

Flex - communicating between Itemrenderes in a single row

I have a datagrid with an XML object as dataprovider. There are 2 columns in the datagrid which have comboboxes as their itemrenderers. The rendereriseditor property is also marked true. These itemrenderers are define开发者_如何学Pythond in their own mxml files. What i want is if the user selects a particular item in the combobox, say NA, then the value of the other combobox should also become NA.

How can i achieve such a behavior?

Thanks

Sid


The possible solution may be to change the data's prop that can be bound in that dependable column. There is no default communication mechanism for item renderers in Flex but you can play with dataProvider.

Also, I wouln not recommend this way Flex - Sending a parameter to a custom ItemRenderer? as it is not OOP style.

Also, this article may be useful too: http://blog.flexdevelopers.com/2009/06/flex-examples-item-renderers-in.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜