<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Looping over an ArrayCollection with Cursor Example</title>
	<atom:link href="http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/</link>
	<description>Examples, News and Other Stuff</description>
	<lastBuildDate>Thu, 19 Jan 2012 14:01:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joachim</title>
		<link>http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/comment-page-1/#comment-1926</link>
		<dc:creator>Joachim</dc:creator>
		<pubDate>Sun, 10 Jul 2011 19:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.flex-blog.com/?p=285#comment-1926</guid>
		<description>Hi,

I have a problem using XML and Arraycollection and populating a DataGroup (formerly repeater). I use the Model object to get the XML and fill the Arraycollection. The ItemRenderer for the DataGroup has a Canvas, which is used as Buttons with labels and images. All the data are correctly retrieved from the original xml using the data.xxx syntax for the Arraycollection. However, I have associated mousehandlers with the Canvas and only the last Button in the Array has got the eventhandlers but not the others. 

Is there a way to resolve this?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a problem using XML and Arraycollection and populating a DataGroup (formerly repeater). I use the Model object to get the XML and fill the Arraycollection. The ItemRenderer for the DataGroup has a Canvas, which is used as Buttons with labels and images. All the data are correctly retrieved from the original xml using the data.xxx syntax for the Arraycollection. However, I have associated mousehandlers with the Canvas and only the last Button in the Array has got the eventhandlers but not the others. </p>
<p>Is there a way to resolve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan Nieuwenhuizen</title>
		<link>http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/comment-page-1/#comment-670</link>
		<dc:creator>Arjan Nieuwenhuizen</dc:creator>
		<pubDate>Wed, 13 Jan 2010 14:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.flex-blog.com/?p=285#comment-670</guid>
		<description>Hi Louis,

You have to specify the dataField of the DataGridColumn of the column in which you have the ComboBox itemrenderer behind the current object: cursor.current.&lt;em&gt;[dataField value]&lt;/em&gt;

The current statement refers to the complete object in the original ArrayCollection, to get the value you should refer to the correct attribute from that object...

Hope this solves your problem.

- Arjan</description>
		<content:encoded><![CDATA[<p>Hi Louis,</p>
<p>You have to specify the dataField of the DataGridColumn of the column in which you have the ComboBox itemrenderer behind the current object: cursor.current.<em>[dataField value]</em></p>
<p>The current statement refers to the complete object in the original ArrayCollection, to get the value you should refer to the correct attribute from that object&#8230;</p>
<p>Hope this solves your problem.</p>
<p>- Arjan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/comment-page-1/#comment-667</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Wed, 13 Jan 2010 10:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flex-blog.com/?p=285#comment-667</guid>
		<description>I&#039;m using a cursor to navigate in the datagrid rows.
My problem is that the datagrid has as itemrender the following









Now I need to catch for each row of the datagrid the selected value of the combobox when the user clicks on a button external to the datagrid.
How can I do this?
I have tryied with the cursor but how can I catch the combobox value?:

while( !cursor.afterLast )
{
// Access each column field like: cursor.current.MyFieldName
mx.controls.Alert.show(cursor.current.????)
// Obviously don&#039;t forget to move to next row:
cursor.moveNext();
}</description>
		<content:encoded><![CDATA[<p>I&#8217;m using a cursor to navigate in the datagrid rows.<br />
My problem is that the datagrid has as itemrender the following</p>
<p>Now I need to catch for each row of the datagrid the selected value of the combobox when the user clicks on a button external to the datagrid.<br />
How can I do this?<br />
I have tryied with the cursor but how can I catch the combobox value?:</p>
<p>while( !cursor.afterLast )<br />
{<br />
// Access each column field like: cursor.current.MyFieldName<br />
mx.controls.Alert.show(cursor.current.????)<br />
// Obviously don&#8217;t forget to move to next row:<br />
cursor.moveNext();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoffrey McRae</title>
		<link>http://www.flex-blog.com/looping-over-an-arraycollection-with-cursor-example/comment-page-1/#comment-419</link>
		<dc:creator>Geoffrey McRae</dc:creator>
		<pubDate>Tue, 01 Dec 2009 04:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.flex-blog.com/?p=285#comment-419</guid>
		<description>Excellent! just what i was looking for, thanks

I have found a gotchya in this though, if you use &quot;disableAutoUpdate&quot; before entering the lopp, when removing items, the cursor does not get updated properly and you will exit the loop early.</description>
		<content:encoded><![CDATA[<p>Excellent! just what i was looking for, thanks</p>
<p>I have found a gotchya in this though, if you use &#8220;disableAutoUpdate&#8221; before entering the lopp, when removing items, the cursor does not get updated properly and you will exit the loop early.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

