<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Using XML with DataGrid itemRenderers</title>
	<atom:link href="http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/</link>
	<description>Flex, AIR, &#38; Android Development Blog</description>
	<lastBuildDate>Fri, 18 May 2012 22:41:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: mister</title>
		<link>http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-149</link>
		<dc:creator><![CDATA[mister]]></dc:creator>
		<pubDate>Wed, 09 Feb 2011 00:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-149</guid>
		<description><![CDATA[I don&#039;t think I have the file any longer.  If I can find it in old version of my blog, I will fix the link.]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I have the file any longer.  If I can find it in old version of my blog, I will fix the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gines</title>
		<link>http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-148</link>
		<dc:creator><![CDATA[Gines]]></dc:creator>
		<pubDate>Sat, 05 Feb 2011 14:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-148</guid>
		<description><![CDATA[Dear Mister,

I am trying to see the sample but the linsk returns an 404 error. Could you post another URL if possible, or send me by email?

Many thanks,

Gines]]></description>
		<content:encoded><![CDATA[<p>Dear Mister,</p>
<p>I am trying to see the sample but the linsk returns an 404 error. Could you post another URL if possible, or send me by email?</p>
<p>Many thanks,</p>
<p>Gines</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-147</link>
		<dc:creator><![CDATA[praveen]]></dc:creator>
		<pubDate>Thu, 02 Dec 2010 06:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-147</guid>
		<description><![CDATA[HI
 I uanble to access the link in ur site it says 404 not found....................

  Can u help with some code i need to develop a application in which based on t he xml i have change the item renderer in the data grid .&#039;
for example if the tag has a property itemrenderer saying drop down list i need to render the data grid with a drop down list  and if there is a check box i have to renderer that in the data grid

Pls help me]]></description>
		<content:encoded><![CDATA[<p>HI<br />
 I uanble to access the link in ur site it says 404 not found&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>  Can u help with some code i need to develop a application in which based on t he xml i have change the item renderer in the data grid .&#8217;<br />
for example if the tag has a property itemrenderer saying drop down list i need to render the data grid with a drop down list  and if there is a check box i have to renderer that in the data grid</p>
<p>Pls help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neha</title>
		<link>http://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-146</link>
		<dc:creator><![CDATA[Neha]]></dc:creator>
		<pubDate>Thu, 22 Apr 2010 11:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-146</guid>
		<description><![CDATA[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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-145</link>
		<dc:creator><![CDATA[Kapil Kaushik]]></dc:creator>
		<pubDate>Mon, 13 Jul 2009 07:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-145</guid>
		<description><![CDATA[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://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://s0.wp.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://s0.wp.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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-144</link>
		<dc:creator><![CDATA[Kapil Kaushik]]></dc:creator>
		<pubDate>Mon, 13 Jul 2009 07:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-144</guid>
		<description><![CDATA[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://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://s0.wp.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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-143</link>
		<dc:creator><![CDATA[Mister]]></dc:creator>
		<pubDate>Sun, 12 Jul 2009 23:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-143</guid>
		<description><![CDATA[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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-142</link>
		<dc:creator><![CDATA[Kapil Kaushik]]></dc:creator>
		<pubDate>Sat, 11 Jul 2009 20:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-142</guid>
		<description><![CDATA[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>
<p>[as]<br />
var propertyColumn:DataGridColumn = new DataGridColumn(&#8220;Name&#8221;);<br />
			propertyColumn.editable = false;<br />
			propertyColumn.width = 60;<br />
			var valueColumn:DataGridColumn = new DataGridColumn(&#8220;Value&#8221;);<br />
			valueColumn.editable = true;<br />
			propertyColumn.width = 60;<br />
			var unitColumn:DataGridColumn = new DataGridColumn(&#8220;Unit&#8221;);<br />
			unitColumn.itemRenderer = new ClassFactory(Unit);<br />
[/as]<br />
Here Unit is an class which implements Combobox<br />
[as]<br />
public class Unit extends ComboBox<br />
	{<br />
		private var _displayList:ArrayCollection;</p>
<p>		public function Unit()<br />
		{<br />
			_displayList = new ArrayCollection();<br />
			_displayList.addItem(&#8220;N/A&#8221;);</p>
<p>			this.selectedIndex = 0;<br />
			this.dataProvider = _displayList;<br />
		}</p>
<p>                public function setDisplayList(list:ArrayCollection):void<br />
		{<br />
			_displayList = list;<br />
			this.dataProvider = _displayList;<br />
			this.selectedIndex = 0;<br />
		}<br />
}<br />
[/as]</p>
<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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-141</link>
		<dc:creator><![CDATA[Mister]]></dc:creator>
		<pubDate>Wed, 04 Jun 2008 15:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-141</guid>
		<description><![CDATA[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://thanksmister.com/2006/08/23/using-multiple-itemrenderers-with-flex-2-datagrid/#comment-140</link>
		<dc:creator><![CDATA[Asma]]></dc:creator>
		<pubDate>Wed, 04 Jun 2008 06:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=24#comment-140</guid>
		<description><![CDATA[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>
</channel>
</rss>

