<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; itemEditor</title>
	<atom:link href="http://blog.minidx.com/tag/itemeditor/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex中如何给DataGrid控件的项目添加一个可编辑TextArea/TextInput的例子</title>
		<link>http://blog.minidx.com/2008/10/12/1510.html</link>
		<comments>http://blog.minidx.com/2008/10/12/1510.html#comments</comments>
		<pubDate>Sat, 11 Oct 2008 23:50:03 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[TextInput]]></category>
		<category><![CDATA[itemEditor]]></category>
		<category><![CDATA[TextArea]]></category>
		<category><![CDATA[variableRowHeight]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1510</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何给DataGrid控件的项目添加一个可编辑TextArea/TextInput，单击控件内的项目时，自动进入编辑状态。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:XML&#160;id=&#34;itemsXML&#34; source=&#34;data/items.xml&#34; /&#62;
&#160;
&#160; &#160; &#60;mx:DataGrid&#160;id=&#34;dataGrid&#34;
&#160; &#160; &#160; &#160; &#160; &#160; dataProvider=&#34;{itemsXML.item}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; variableRowHeight=&#34;true&#34;
&#160; &#160; &#160; &#160; &#160; &#160; editable=&#34;true&#34;
&#160; &#160; &#160; &#160; &#160; &#160; width=&#34;100%&#34;
&#160; &#160; &#160; &#160; &#160; &#160; height=&#34;100%&#34;&#62;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/10/12/1510.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何将NumericStepper控件作为DataGrid控件的一个编辑项目的例子</title>
		<link>http://blog.minidx.com/2008/05/13/843.html</link>
		<comments>http://blog.minidx.com/2008/05/13/843.html#comments</comments>
		<pubDate>Tue, 13 May 2008 12:03:55 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[editable]]></category>
		<category><![CDATA[editorDataField]]></category>
		<category><![CDATA[itemEditor]]></category>
		<category><![CDATA[NumericStepper]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/13/843.html</guid>
		<description><![CDATA[和前面的Flex中如何通过设置editable属性创建一个可编辑的DataGrid控件的例子很相似，接下来的例子演示了Flex中，如何通过设置DataGrid控件和DataGridColumn 对象的itemEditor和editorDataField属性，将NumericStepper控件作为DataGrid控件的一个编辑项目。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里查看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:ArrayCollection&#160;id=&#34;arrColl&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:source&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Array&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Student A&#34; score=&#34;8&#34; /&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Student B&#34; score=&#34;4&#34; /&#62;
&#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/13/843.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/19 queries in 1.014 seconds using disk
Object Caching 224/457 objects using disk

Served from: blog.minidx.com @ 2012-02-09 20:25:02 -->
