flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfb <j.ballada...@verizon.net>
Subject RE: ADG with item renderers
Date Tue, 28 Jan 2014 02:19:37 GMT
This is what i did:
Create a class as:
package com
{
	import flash.events.EventDispatcher;
	
	[Bindable]
	public class contractObj extends EventDispatcher
	{
		public var productID:Number = 0;
		public var productName:String = '';
		public var jan:Boolean = false;
		public var feb:Boolean = false;

		public var price:Number = 0;

	}
}

Fix the code in the function as:
private function addRow():void{
                                var datagridRow:contractObj = new
contractObj();
                                datagridRow.productID = 0;
                                datagridRow.productName = '';
                                datagridRow.jan = false;
                                datagridRow.feb = false;
                                datagridRow.price = 0;
                                acContracts.addItemAt(datagridRow,
acContracts.length);
                                acContracts.refresh();
                        } 
Now the warning message is gone. But I still have the issue with price not
passing to the arrayCollection of the ADG.
Any ideas?




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/ADG-with-item-renderers-tp4626p4650.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message