I don’t think I can do event handler functions for other components inside ComboBoxCellRender itself.

 

Can I have a show of hands of people who made their Dataproviders dynamic for comboboxes inside a cellrender?

 

Can’t I just setDataprovider?

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Matt Chotin
Sent: Thursday, October 20, 2005 10:47 PM
To: [email protected]
Subject: RE: [flexcoders] ComboBoxCellRenderer question

 

You should adjust the data of the item itself and then have the cell renderer read out of that item (or maybe you’ll need some form of indirection if you don’t want to edit the item).  Basically you need to do this work in the ComboBoxCellRenderer itself, you cannot do it from the outside and point in.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Dan Plesse
Sent: Tuesday, October 18, 2005 11:26 AM
To: [email protected]
Subject: [flexcoders] ComboBoxCellRenderer question

 

I want to change the data in the cell’s comboBox to other database
datatypes. 

So I tried this

var dp = new mx.central.data.DataProviderClass();
    dp.addItem({dataType:"tinyInt", dataType:"Double"});
    ComboBoxCellRenderer.setDataProvider(dp);

Error message:
There is no method with the name 'setDataProvider'

And this

var dp = new mx.central.data.DataProviderClass();
         dp.addItem({dataType:"tinyInt", dataType:"Double"});
         ComboBoxCellRenderer.dataProvider = dp;

No error

And This:

var dp = new mx.central.data.DataProviderClass();
         dp.addItem({dataType:"tinyInt", dataType:"Double"});
         ComboBoxCellRenderer.dataProvider.setDataProvider(dp);

No error:

Also where do I get the this control?
import com.iterationtwo.cairngorm.control.*;









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to