<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Creating an editable DataGrid control in Flex</title>
	<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sun, 05 Jul 2009 20:23:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: abhishek</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18757</link>
		<author>abhishek</author>
		<pubDate>Wed, 22 Apr 2009 13:52:00 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18757</guid>
		<description>hello frnds,
could we make rounded corners of datagrid?
abhishekchess1@gmail.com
thx in advanced,
:)</description>
		<content:encoded><![CDATA[<p>hello frnds,<br />
could we make rounded corners of datagrid?<br />
<a href="mailto:abhishekchess1@gmail.com">abhishekchess1@gmail.com</a><br />
thx in advanced,<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bartimus</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18237</link>
		<author>Bartimus</author>
		<pubDate>Tue, 10 Mar 2009 21:17:14 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18237</guid>
		<description>Okay sorry to double post, I just figure out what is making the scroll bar fire the events, I think its a flex bug.  If you have selectable=false in the datagrid then i think it confuses some of the events and the scrollbars with execute them.</description>
		<content:encoded><![CDATA[<p>Okay sorry to double post, I just figure out what is making the scroll bar fire the events, I think its a flex bug.  If you have selectable=false in the datagrid then i think it confuses some of the events and the scrollbars with execute them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bartimus</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18236</link>
		<author>Bartimus</author>
		<pubDate>Tue, 10 Mar 2009 21:13:31 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18236</guid>
		<description>Anyone else have issues where the scroll bar will fire off itemEdit events and it passes the last item you edited?  So for example you'd click on the number in the example above and then when you'd scroll it would open the editor for the same element.  For the life of me I can't figure out why its doing that.</description>
		<content:encoded><![CDATA[<p>Anyone else have issues where the scroll bar will fire off itemEdit events and it passes the last item you edited?  So for example you&#8217;d click on the number in the example above and then when you&#8217;d scroll it would open the editor for the same element.  For the life of me I can&#8217;t figure out why its doing that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nayk</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18029</link>
		<author>Nayk</author>
		<pubDate>Thu, 19 Feb 2009 11:37:31 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18029</guid>
		<description>Hi, does anyone know how to adapt Brent's CellEditable for columns using labelFunction (not dataField) ?
thanks</description>
		<content:encoded><![CDATA[<p>Hi, does anyone know how to adapt Brent&#8217;s CellEditable for columns using labelFunction (not dataField) ?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wpageiii</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18017</link>
		<author>wpageiii</author>
		<pubDate>Tue, 17 Feb 2009 20:36:49 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-18017</guid>
		<description>Not sure if this is possible...You seen like the guy to ask...

I would like to build a datagrid dynamically with amounts cnts etc...like this..
&lt;pre class="code"&gt;
oColumnDef = new DataGridColumn();
oColumnDef.headerText = "Amount";
oColumnDef.dataField = "S"+Storesdp.getItemAt(i).data+"_all_amt";
oColumnDef.width = 60;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = false;
oColumnDef.wordWrap = false;
oColumnDef.labelFunction = amtLabelFunction;
oColumnDef.setStyle("textAlign","right");
colArray.push(oColumnDef);
&lt;/pre&gt;

Then have one column as a combobox...like this...
&lt;pre class="code"&gt;
oColumnDef = new DataGridColumn();
oColumnDef.headerText = "Age";
oColumnDef.width = 50;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = true;
oColumnDef.wordWrap = false;
oColumnDef.itemRenderer = new ClassFactory(BarometerView.comboboxrenderer);
oColumnDef.rendererIsEditor= true;
colArray.push(oColumnDef);
&lt;/pre&gt;

This works as expected...combo renderer I would like to change the dg values for that row based on the users selection (users can select All, 30, 60, 90, 120, 150, 180)
so in the changeHandler of the combo I have some code but cannot seem to figure out the correct syntax to make it work...I have attempted using the selectedIndex of datagrid...

I am not sure my method is correct as the dataprovider for the dg contains separate fields for all, 30, 60, 90 etc....

Perhaps I should use a repeater instead of datagrid so I would have more control and an my simple structure (renderers are a pain)...Thoughts?  I am aware that this post may be difficult to interpret but I did not want to post to much code...as I do not assume others want to do all the work for me...I am just looking for a nudge in the right direction...

I was hoping to use a datagrid rather that repeater for performance reasons...Let mw know if you need other information or if anyone is aware of other resources that would help</description>
		<content:encoded><![CDATA[<p>Not sure if this is possible&#8230;You seen like the guy to ask&#8230;</p>
<p>I would like to build a datagrid dynamically with amounts cnts etc&#8230;like this..</p>
<pre class="code">
oColumnDef = new DataGridColumn();
oColumnDef.headerText = "Amount";
oColumnDef.dataField = "S"+Storesdp.getItemAt(i).data+"_all_amt";
oColumnDef.width = 60;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = false;
oColumnDef.wordWrap = false;
oColumnDef.labelFunction = amtLabelFunction;
oColumnDef.setStyle("textAlign","right");
colArray.push(oColumnDef);
</pre>
<p>Then have one column as a combobox&#8230;like this&#8230;</p>
<pre class="code">
oColumnDef = new DataGridColumn();
oColumnDef.headerText = "Age";
oColumnDef.width = 50;
oColumnDef.sortable = true;
oColumnDef.visible = true;
oColumnDef.editable = true;
oColumnDef.wordWrap = false;
oColumnDef.itemRenderer = new ClassFactory(BarometerView.comboboxrenderer);
oColumnDef.rendererIsEditor= true;
colArray.push(oColumnDef);
</pre>
<p>This works as expected&#8230;combo renderer I would like to change the dg values for that row based on the users selection (users can select All, 30, 60, 90, 120, 150, 180)<br />
so in the changeHandler of the combo I have some code but cannot seem to figure out the correct syntax to make it work&#8230;I have attempted using the selectedIndex of datagrid&#8230;</p>
<p>I am not sure my method is correct as the dataprovider for the dg contains separate fields for all, 30, 60, 90 etc&#8230;.</p>
<p>Perhaps I should use a repeater instead of datagrid so I would have more control and an my simple structure (renderers are a pain)&#8230;Thoughts?  I am aware that this post may be difficult to interpret but I did not want to post to much code&#8230;as I do not assume others want to do all the work for me&#8230;I am just looking for a nudge in the right direction&#8230;</p>
<p>I was hoping to use a datagrid rather that repeater for performance reasons&#8230;Let mw know if you need other information or if anyone is aware of other resources that would help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scarlet sail</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17728</link>
		<author>Scarlet sail</author>
		<pubDate>Mon, 19 Jan 2009 06:31:48 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17728</guid>
		<description>Hi Peter,

If I use xml not ArrayCollection, how can I edit datagrid and save the change back to the xml source? 

Many thanks.</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>If I use xml not ArrayCollection, how can I edit datagrid and save the change back to the xml source? </p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17726</link>
		<author>Peter deHaan</author>
		<pubDate>Mon, 19 Jan 2009 03:16:29 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17726</guid>
		<description>Ujjwal B Soni,

Only the second column (score) in the example's data grid is editable.

Peter</description>
		<content:encoded><![CDATA[<p>Ujjwal B Soni,</p>
<p>Only the second column (score) in the example&#8217;s data grid is editable.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ujjwal B Soni</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17723</link>
		<author>Ujjwal B Soni</author>
		<pubDate>Sun, 18 Jan 2009 16:49:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17723</guid>
		<description>Hi,

The datagrid posted here is not editable. Can you throw some light on creating an editable datagrid connected with database.

Cheers!!!

Ujjwal B Soni


</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>The datagrid posted here is not editable. Can you throw some light on creating an editable datagrid connected with database.</p>
<p>Cheers!!!</p>
<p>Ujjwal B Soni</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sireesha</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17133</link>
		<author>Sireesha</author>
		<pubDate>Tue, 02 Dec 2008 13:01:21 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-17133</guid>
		<description>Hi,

Could you please elaborate more on Custom DataGrid in MXML code?

As per the Above Code DataGrid Columns and values are defined statically but when Webservice is used and returning data in DataGrid what to be written in the code to get the values dynamically and datagrid columns dynamically...i.e., in the array how to get the values dynamically ?

Coould you please guide me how to do this?

Regards
Sireesha.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Could you please elaborate more on Custom DataGrid in MXML code?</p>
<p>As per the Above Code DataGrid Columns and values are defined statically but when Webservice is used and returning data in DataGrid what to be written in the code to get the values dynamically and datagrid columns dynamically&#8230;i.e., in the array how to get the values dynamically ?</p>
<p>Coould you please guide me how to do this?</p>
<p>Regards<br />
Sireesha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Ward</title>
		<link>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-15246</link>
		<author>Stuart Ward</author>
		<pubDate>Thu, 04 Sep 2008 18:44:16 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/#comment-15246</guid>
		<description>Peter,
Is is possible to extend this a bit and select text across two or more cells in a given row - still using the typical click and drag highlight method that is used in your examples?

I am aware that the Advanced DataGrid has a multiple select feature, but it relies on conrol-clicking each cell and selected the entire contents of the cell.

Thanks for your help,
Stuart</description>
		<content:encoded><![CDATA[<p>Peter,<br />
Is is possible to extend this a bit and select text across two or more cells in a given row - still using the typical click and drag highlight method that is used in your examples?</p>
<p>I am aware that the Advanced DataGrid has a multiple select feature, but it relies on conrol-clicking each cell and selected the entire contents of the cell.</p>
<p>Thanks for your help,<br />
Stuart</p>
]]></content:encoded>
	</item>
</channel>
</rss>
