If your customRenderer implements IDropInListItemRenderer, the listData
will have the columnIndex which you can use to look up the array entry
and update it later.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Dhanda
Sent: Monday, July 28, 2008 9:55 AM
To: [email protected]
Subject: [flexcoders] DataGridColumn issue: Passing an array.

 


Hii Guyz,

The problem is:
I am passing an array of weekdays as datafield for a DataGridColumn as
follows:

<mx:DataGridColumn dataField="days" headerText="S" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="M" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="T" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="W" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="T" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="F" 
itemRenderer="customRenderer"/>
<mx:DataGridColumn dataField="days" headerText="S" 
itemRenderer="customRenderer"/>

days is an array.
It has values true,false,false,true.. like that for all 7 days.

Now in my customRenderer, I want to toggle the particular cells based on
the
[true/false] passed in for that individual cell from the array(days)
passed
in.
Can anyone suggest me a solution for doing it??

Thanks,
Manu.
-- 
View this message in context:
http://www.nabble.com/DataGridColumn-issue%3A-Passing-an-array.-tp186877
91p18687791.html
<http://www.nabble.com/DataGridColumn-issue%3A-Passing-an-array.-tp18687
791p18687791.html> 
Sent from the FlexCoders mailing list archive at Nabble.com.

 

Reply via email to