Hi Dharmendra, Why dont you try assigning the labelFunction like this:
Col.labelFunction = this["lableFucntionName"]; By this way, the function name in the string will be interpreted as an as3 function. Let me know if this was not what you intended. Regards, Venkat www.venkatv.com On Thu, Jan 1, 2009 at 7:30 PM, DAM <[email protected]> wrote: > > Hi All, > I am creating DataGridColumn on the fly based up user input. > All of these column required different -different label function. So I > have created a XML file which contains key value pair of dataField > Nane and corresponding labelfunction Name . > <Root> > <Formatter> > <dataField>TradingDate</dataField> > <FormatterName>matsDateFormatter</FormatterName> > </Formatter> > <Formatter> > <dataField>TradingDate</dataField> > <FormatterName>matsDateFormatter</FormatterName> > </Formatter> > </Root> > > I am fetching function name from this file using xml api. But when I > assign fetched label function to dataGridColumn I got error which is > expected. > Col.labelFunction = "lableFucntionName"; > > > > Can we dynamically assign label function name to dataGridColun ? Do > we have similar java reflection type mechanism in flex ? > > > > Thanks, > Dharmendra > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

