|
If Abdul's query is true about the
data arriving later ... you should maybe call the initCellRenderer
later. I assume you are calling initCellRenderer on initialize of the application. (I assumed so since there are traces of Steven's post (http://www.richinternetapps.com/archives/000072.html) in your post. Try the following. 1. Call clTypeSrv.send() in the application tag 2. Call a function populateComboBox() in the HTTPService tag 3. Populate the values to the ComboBoxRenderer through the script (this ensures that the population happens after data is retrieved) 4. Maybe and a slight maybe that "type" in "clTypeSrv.result.types.type" is a reserved word and is creating a problem! (somebody with better knowledge on this can clarify!) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" initialize="clTypeSrv.send()"> <mx:Script> <![CDATA[ function populateComboBox () { var comboBoxValues = clTypeSrv.result.types.type; ComboBoxCellRenderer.dataProvider = comboBoxValues; // You do not have to use the initCellRenderer now ... you are doing it in the above line } ]]> </mx:Script> <mx:HTTPService id="clTypeSrv" result="populateComboBox()"> <mx:request> ........................... </mx:request> </mx:HTTPService> .............. <mx:DataGrid> ....................... </mx:DataGrid> </mx:Application> Regards Sree Abdul Qabiz wrote: When are you calling initCellRenderer? May be data has not yet arrived and Yahoo! Groups Links
|
- Re: [flexcoders] cell render problem Sreejith Unnikrishnan
- [flexcoders] Re: cell render problem Rajesh Jayabalan
- [flexcoders] Re: cell render problem Rajesh Jayabalan
- [flexcoders] Re: cell render problem --... Rajesh Jayabalan

