Results 1 to 2 of 2
-
August 5th, 2008, 06:10 AM #124Registered User
postsHow do I create headerRenderer for DataGridColumn in AS?
Hi!

How do I create a headerRenderer with a TextInput for a DataGridColumn in ActionScript?
I know how to do it in MXML but I need to know the how to do it in AS.
Thanks for your time!
//KenwioLast edited by Kenwio; August 5th, 2008 at 06:14 AM.
-
August 5th, 2008, 10:29 AM #2
Check out ClassFactory - http://livedocs.adobe.com/flex/3/lan...ssFactory.html
To assign programmatically you would say:
or where you asking how to make the actual renderer itself?Code:var factory:IFactory = new ClassFactory(yourHeaderRendererClass); factory.properties = {name/value pairs to assign to your newInstance}; var dgc:DataGridColumn = //whatever column you are targeting dgc.headerRenderer = factory

Reply With Quote

Bookmarks