Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Flex AdvancedDatagrid data display

I  have an AdvancedDatagrid,populating data from dataprovider (ArrayCollection).

Dataprovider  has values null in case of missing column values. I dont want this null to be displayed as a column value in DataGrid. How to remove the diplay of "null" in a column.
0
VKN9876
Asked:
VKN9876
1 Solution
 
Jones911Commented:
Use a label function on the dataGrid column.:
private function labelIsNull(item:Object, column:DataGridColumn):String {
   if(item[column.dataField] == null){
       return "";
   }else
      return item[column.dataField];
}

Open in new window

0

Featured Post

Cyber Threats to Small Businesses (Part 2)

The evolving cybersecurity landscape presents SMBs with a host of new threats to their clients, their data, and their bottom line. In part 2 of this blog series, learn three quick processes Webroot’s CISO, Gary Hayslip, recommends to help small businesses beat modern threats.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now