labelfunction

How can i make a reusable labelFunction for Flex Datagrid?

I have a label function like : private function formatDate (item:Object, column:DataGridColumn):String { var df:DateFormatter = new DateFormatter(); df.formatString = "MM/DD/YY"; if (column.dataField == "startDate") { return df.format(item.startDate); } return "ERR"; } Which I use in a datacolumn by using la...

Problems with indepth flex loading of value objects (Lazy loading at the front-end?)

Hi, I'm using a java-backend with a flex frontend. And when i want to use a labelfunction it doesn't load the indepth properties such as a value object, it's like it is lazy loaded in the flex side, I'm sure it is not comming from the backend because i've checked it overthere. I've got it also in datagrid's that it doesn't load all the...

Extract Text based on Character - Flex

I'm using an auto complete component and a labelFunction so that user have the ability to search by their name or id. Once the search is completed I'd like to extract the data to a query. The only problem is that I only need the name or id for the query not both, so I'd like to pull from just the id variable... Currently if the user ty...

Get content of a single cells labelFunction from a DataGrid in Flex 3

This is similar to this question I asked last week. My dataGrid is populated with three phone numbers per row. Each phone number is pulled from an array and displayed using a labelFunction, while the name and description come from the dataProvider. I used the really helpful solution to my last question with some success, but can't grab ...

Flex DataGrid labelFunction not getting called

I have a DataGrid where one of the columns has a labelFunction. When I run the application a scrollbar shows up in the DataGrid indicating to me that it has data but there is nothing in the DataGrid. When I scroll items start showing up. When I Debugged it I noticed that the labelFunction was never being called until I started scrolli...

Flex DropDownList LabelFunction Issue

Hi All I have a dropdown list as : <s:DropDownList id="cad" width="100%" dataProvider="{model.referenceList.refPatientResponseLists}" labelFunction="myFunction" selectedIndex="{model.cd.code}"/> Now the refPatientResponseLists returns 3 rows of data & I need to display the 3 values in the Dropdownlis...