<?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: Using XML with DataGrid itemRenderers</title>
	<atom:link href="http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/</link>
	<description>Flash &#38; Flex Developer</description>
	<lastBuildDate>Tue, 31 Aug 2010 04:17:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Neha</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-29236</link>
		<dc:creator>Neha</dc:creator>
		<pubDate>Thu, 22 Apr 2010 11:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-29236</guid>
		<description>Hi ,

I am trying to use AutoComplete as itemEditor in an AdvancedDataGrid.It is not working properly.

1.When there appears a scroll bar and I try to scroll down ,the typed text in the AutoComplete component disappears where in i want to retain it.

2.When i change the typed text of autocomplete in one row ,the combo for other rows open one by one.

Please help me with the solution.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>I am trying to use AutoComplete as itemEditor in an AdvancedDataGrid.It is not working properly.</p>
<p>1.When there appears a scroll bar and I try to scroll down ,the typed text in the AutoComplete component disappears where in i want to retain it.</p>
<p>2.When i change the typed text of autocomplete in one row ,the combo for other rows open one by one.</p>
<p>Please help me with the solution.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil Kaushik</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-14030</link>
		<dc:creator>Kapil Kaushik</dc:creator>
		<pubDate>Mon, 13 Jul 2009 07:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-14030</guid>
		<description>Hi Mister,

Thanks for the reply. I have already gone over the post. Also, as mentioned in that post, I am indeed passing an associative array to the dataprovider of the datagrid, and all the data does get updated nicely, except for the combobox :( :(

The reason for above is that it does not set the data to the itemrenderer of combobox (inspite of me overriding the &quot;set data&quot; and &quot;set dataProvider&quot; functions). 

But how to set it, i do not understand :(

Thanks,
Kapil</description>
		<content:encoded><![CDATA[<p>Hi Mister,</p>
<p>Thanks for the reply. I have already gone over the post. Also, as mentioned in that post, I am indeed passing an associative array to the dataprovider of the datagrid, and all the data does get updated nicely, except for the combobox <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>The reason for above is that it does not set the data to the itemrenderer of combobox (inspite of me overriding the &#8220;set data&#8221; and &#8220;set dataProvider&#8221; functions). </p>
<p>But how to set it, i do not understand <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Thanks,<br />
Kapil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil Kaushik</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-14029</link>
		<dc:creator>Kapil Kaushik</dc:creator>
		<pubDate>Mon, 13 Jul 2009 07:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-14029</guid>
		<description>Hi Mister,

Thanks for the reply. I have already gone over the post. Also, as mentioned in that post, I am indeed passing an associative array to the dataprovider of the datagrid, and all the data does get updated nicely, except for the combobox :( :(

The reason for above is that it does not set the data to the itemrenderer of combobox (inspite of me overriding the &quot;set data&quot; and &quot;set dataProvider&quot; functions). 

Thanks,
Kapil</description>
		<content:encoded><![CDATA[<p>Hi Mister,</p>
<p>Thanks for the reply. I have already gone over the post. Also, as mentioned in that post, I am indeed passing an associative array to the dataprovider of the datagrid, and all the data does get updated nicely, except for the combobox <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>The reason for above is that it does not set the data to the itemrenderer of combobox (inspite of me overriding the &#8220;set data&#8221; and &#8220;set dataProvider&#8221; functions). </p>
<p>Thanks,<br />
Kapil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mister</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-14017</link>
		<dc:creator>Mister</dc:creator>
		<pubDate>Sun, 12 Jul 2009 23:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-14017</guid>
		<description>You need to check out an article on Adobe.com about creating itemrenderers, this will show you how to pass data into the itemrenderer from the list or datagrid controls: http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html</description>
		<content:encoded><![CDATA[<p>You need to check out an article on Adobe.com about creating itemrenderers, this will show you how to pass data into the itemrenderer from the list or datagrid controls: <a href="http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html" rel="nofollow">http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil Kaushik</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-13969</link>
		<dc:creator>Kapil Kaushik</dc:creator>
		<pubDate>Sat, 11 Jul 2009 20:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-13969</guid>
		<description>Hi Mister,

Thanks for the tutorial !!

I am stuck with one problem for sometime now, and was hoping if you could help me out.

Similar to your example, I am trying to populate a data grid using xml. However, I also want the combobox to be updated dynamically.

I am using flex 3.3 mx.controls.datagrid component.

Here is the code snippet for what I am trying to do:

[as]
var propertyColumn:DataGridColumn = new DataGridColumn(&quot;Name&quot;);
			propertyColumn.editable = false;
			propertyColumn.width = 60;
			var valueColumn:DataGridColumn = new DataGridColumn(&quot;Value&quot;);
			valueColumn.editable = true;
			propertyColumn.width = 60;
			var unitColumn:DataGridColumn = new DataGridColumn(&quot;Unit&quot;);
			unitColumn.itemRenderer = new ClassFactory(Unit);
[/as]
Here Unit is an class which implements Combobox
[as]
public class Unit extends ComboBox
	{
		private var _displayList:ArrayCollection;
		
		public function Unit()
		{
			_displayList = new ArrayCollection();
			_displayList.addItem(&quot;N/A&quot;);
			
			this.selectedIndex = 0;
			this.dataProvider = _displayList;
		} 

                public function setDisplayList(list:ArrayCollection):void
		{
			_displayList = list;
			this.dataProvider = _displayList;
			this.selectedIndex = 0;
		}
}
[/as]

Then I create an array object which contains a list of values for this, and assign it to the dataprovider of the data grid. All the other values in the grid get displayed properly except for the combobox. The reason I checked was that it creates a new item for the unit when I assign my data to the dataprovider, and does not take my previous data.

I understand that what is happening is correct (because I am doing new ClassFactory(Unit) while creating itemrenderer), but dont know what I need to do to pass the data I provided to the itemrenderer.

Any help/feedback that you may give would be really really appreciated !!!

Thanks in advance,
Kapil</description>
		<content:encoded><![CDATA[<p>Hi Mister,</p>
<p>Thanks for the tutorial !!</p>
<p>I am stuck with one problem for sometime now, and was hoping if you could help me out.</p>
<p>Similar to your example, I am trying to populate a data grid using xml. However, I also want the combobox to be updated dynamically.</p>
<p>I am using flex 3.3 mx.controls.datagrid component.</p>
<p>Here is the code snippet for what I am trying to do:</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> propertyColumn:DataGridColumn = <span style="color: #000000; font-weight: bold;">new</span> DataGridColumn<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Name&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; propertyColumn.<span style="color: #006600;">editable</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; propertyColumn.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">60</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> valueColumn:DataGridColumn = <span style="color: #000000; font-weight: bold;">new</span> DataGridColumn<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Value&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; valueColumn.<span style="color: #006600;">editable</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; propertyColumn.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">60</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> unitColumn:DataGridColumn = <span style="color: #000000; font-weight: bold;">new</span> DataGridColumn<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Unit&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unitColumn.<span style="color: #006600;">itemRenderer</span> = <span style="color: #000000; font-weight: bold;">new</span> ClassFactory<span style="color: #66cc66;">&#40;</span>Unit<span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>Here Unit is an class which implements Combobox</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Unit <span style="color: #0066CC;">extends</span> ComboBox<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _displayList:ArrayCollection;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Unit<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _displayList = <span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _displayList.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;N/A&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">selectedIndex</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">dataProvider</span> = _displayList;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setDisplayList<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">list</span>:ArrayCollection<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _displayList = <span style="color: #0066CC;">list</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">dataProvider</span> = _displayList;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">selectedIndex</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>Then I create an array object which contains a list of values for this, and assign it to the dataprovider of the data grid. All the other values in the grid get displayed properly except for the combobox. The reason I checked was that it creates a new item for the unit when I assign my data to the dataprovider, and does not take my previous data.</p>
<p>I understand that what is happening is correct (because I am doing new ClassFactory(Unit) while creating itemrenderer), but dont know what I need to do to pass the data I provided to the itemrenderer.</p>
<p>Any help/feedback that you may give would be really really appreciated !!!</p>
<p>Thanks in advance,<br />
Kapil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mister</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-8324</link>
		<dc:creator>Mister</dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-8324</guid>
		<description>I don&#039;t get an error, the only thing not working is the delete function.  Can you be sure you have version 9 of the Flash player.   I can&#039;t imagine what else could be the issue.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t get an error, the only thing not working is the delete function.  Can you be sure you have version 9 of the Flash player.   I can&#8217;t imagine what else could be the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asma</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-8317</link>
		<dc:creator>Asma</dc:creator>
		<pubDate>Wed, 04 Jun 2008 06:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-8317</guid>
		<description>hi,
i&#039;m using item renderer in my app... even i get the same error saying definition Flags could not be found... Flags is the .mxml  file i created which has the renderer... and it is in the same folder as my main file</description>
		<content:encoded><![CDATA[<p>hi,<br />
i&#8217;m using item renderer in my app&#8230; even i get the same error saying definition Flags could not be found&#8230; Flags is the .mxml  file i created which has the renderer&#8230; and it is in the same folder as my main file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-8302</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 02 Jun 2008 19:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-8302</guid>
		<description>Mister

Thanks for the wonderful example. 

I am not too sure how to implement the following scenario using the rendered here.

1) I have a httpservice returning an xml that looks like this

  
     1
     Science
  
  
     2
     Mathematics
  
 
This is the data for the itemrenderer combo box. I want it to display the name, but as the value back to the datagrid, send the &quot;id&quot;.

Also in the datagrid, I would like to display the name instead of id.

Any inputs, appreciated.

Thanks

Jim</description>
		<content:encoded><![CDATA[<p>Mister</p>
<p>Thanks for the wonderful example. </p>
<p>I am not too sure how to implement the following scenario using the rendered here.</p>
<p>1) I have a httpservice returning an xml that looks like this</p>
<p>     1<br />
     Science</p>
<p>     2<br />
     Mathematics</p>
<p>This is the data for the itemrenderer combo box. I want it to display the name, but as the value back to the datagrid, send the &#8220;id&#8221;.</p>
<p>Also in the datagrid, I would like to display the name instead of id.</p>
<p>Any inputs, appreciated.</p>
<p>Thanks</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mister</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-7387</link>
		<dc:creator>Mister</dc:creator>
		<pubDate>Sun, 02 Mar 2008 16:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-7387</guid>
		<description>Well, since the code has not changed and the data has not changed, the remaining factor seems to be the Flash player version change.  I am using 9.0.115,  and it has stopped working for me as well.  What version of the Flash player are you using?</description>
		<content:encoded><![CDATA[<p>Well, since the code has not changed and the data has not changed, the remaining factor seems to be the Flash player version change.  I am using 9.0.115,  and it has stopped working for me as well.  What version of the Flash player are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pythagoras</title>
		<link>http://www.thanksmister.com/index.php/archive/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-7357</link>
		<dc:creator>pythagoras</dc:creator>
		<pubDate>Fri, 29 Feb 2008 21:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-7357</guid>
		<description>the delete button doesn&#039;t seem to work. It seems you have a removeChildAt call which I can&#039;t find in the XML class docs, but it there is a removeItemAt in XMLLIstCOllection ... any ideas?</description>
		<content:encoded><![CDATA[<p>the delete button doesn&#8217;t seem to work. It seems you have a removeChildAt call which I can&#8217;t find in the XML class docs, but it there is a removeItemAt in XMLLIstCOllection &#8230; any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
