flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34132) DataGrid columns with no dataField specified give "[object Object]"
Date Tue, 11 Mar 2014 05:59:42 GMT
Justin Mclean created FLEX-34132:

             Summary: DataGrid columns with no dataField specified give "[object Object]"
                 Key: FLEX-34132
                 URL: https://issues.apache.org/jira/browse/FLEX-34132
             Project: Apache Flex
          Issue Type: Bug
          Components: ADG:Display
    Affects Versions: Apache Flex 4.12.0
            Reporter: Justin Mclean

This is a regression from 4.11. It a minor issue but as it a regression I put it at major.

A ADG column with no dataField and no data renderer defined will display "[object Object]".
It would display blank in 4.11 and earlier.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			import mx.collections.ArrayCollection;

			protected var data:ArrayCollection = new ArrayCollection([
				{name:"Person A"},
				{name:"Person B"},
				{name:"Person C"}
	<mx:AdvancedDataGrid dataProvider="{data}">
			<mx:AdvancedDataGridColumn  />
			<mx:AdvancedDataGridColumn />
			<mx:AdvancedDataGridColumn />

Work around is to define the dataField, add a labelFuction, add a toString method to the object
or use a real item renderer.

This message was sent by Atlassian JIRA

View raw message