flex - Is labelFunction useless with a heirarchical AdvandedDataGrid? -


the signature labelfunction is:

mylabelfunction(item:object, column:datagridcolumn):string

where item contains datagrid item object, , column specifies datagrid column. flat data can value need format item[column.datafield].

however heirarchical data given whole "folder" - i.e. items in heirarchy - in item parameter how can choose 1 use?

eg. weather data organized heirarchically state groups

arizona - maxtemp - jan, feb, march, april arizona - mintemp - jan, feb, march, april california - maxtemp - jan, feb, march, april california - mintemp - jan, feb, march, april 

if want format this, you'll given entire arizona item children array containing both maxtemp , mintemp data, there no way tell whether formatting maxtemp or mintemp. or there???

wait... seems work after all. don't anyway item[column.datafield] works.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -