Questions tagged [labelfunction]

14 questions
8
votes
3 answers

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…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
2
votes
1 answer

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…
asawilliams
  • 2,908
  • 2
  • 30
  • 54
1
vote
1 answer

Initiating Flex DataGrid rendering

I have a DataGrid where some number of the columns can have a labelFunction. The nature of the labelFunction result can change problematically(eg apply formatting, bypass formatting). How do I get the DataGrid to re-render the visible items so…
Doug
  • 43
  • 5
1
vote
2 answers

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

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…
Jan
  • 11
  • 2
0
votes
2 answers

labelFunction and sortCompareFunction and large data sets in Flex

OK, below is a simplified example of what I have to do. So far so good, works A1. The IDs are replaced by the friend name, and the column is sortable. Now, I have to apply this to a system containing thousands of IDs and thousands of rows. I tried…
0
votes
1 answer

Labelfunction in Barseries along with plotseries

I have a Flec Bar chart. It has a Bar series. I need to show the datalabel at the tip of the bars. For this am using labelFunction.This works fine. Now I want to add a plotseries in the same chart. Once it is added the labelfunction in the bar…
Abi
  • 21
  • 4
0
votes
1 answer

Escaping html special chars in a datagrid column

i have a datagrid (6 columns) which displays strings from the database. I am trying to use a labelfunction to escape html special characters in the string (like &apos,& etc). I found this on the net : protected function…
Lin
  • 273
  • 4
  • 21
0
votes
1 answer

Flash Datagrid change cell color depending upon updated data

I have a datagrid in my Flash app whose data keeps updating quite frequently. On every update, I need to change the cell color of only those cells whose data has changed. That too, if the updated value is less than the older value then the cell…
Vikram Deshmukh
  • 12,304
  • 4
  • 36
  • 38
0
votes
3 answers

Flex DatagridColumn LabelFunction Additonal Parameters

I have a datagridcolumn where a labelFunction is defined: private function myLabelFunction(item:Object, column:DataGridColumn):String { var returnVal:String; var nm:NumericFormatter; nm.decimalSeparatorTo = "."; nm.precision =…
Batuta
  • 1,684
  • 17
  • 48
  • 62
0
votes
2 answers

Flex DropDownList LabelFunction Issue

I have a dropdown list as : Now the…
Harry
  • 546
  • 6
  • 22
  • 50
0
votes
1 answer

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.…
0
votes
2 answers

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…
Adam
  • 2,632
  • 8
  • 34
  • 60
0
votes
1 answer

Replacing a NaN value with null in DataGrid in flex

private function getTotalQty(inData:Object, inCol:AdvancedDataGridColumn):String { return…
kris
  • 90
  • 1
  • 1
  • 12
0
votes
2 answers

Flex Datagrid labelFunction query

Main.mxl // employeeData is an Arraycollection with predefined data