首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

FLEX example 事例

2012-11-23 
FLEXexample例子How to find an ArrayCollection item with a specific property value?牛!http://stackov

FLEX example 例子
How to find an ArrayCollection item with a specific property value?牛!
http://stackoverflow.com/questions/1566145/how-to-find-an-arraycollection-item-with-a-specific-property-value

上帖中有两种实现方式:一是通过Array的filter(),二是通过ArrayCollection的filterFunction;不得不说,这个帖子真好!下面是参考上帖后使用第一种方式的本地业务实现:;此时可通过为datagrid加上 minWidth参数设置(minWidth="像素数")让其横向滚动条的长度固定。
当datagrid列很多,数据量也很大时,datagrid的滚动条反映会很迟钝,凸显出严重的性能问题。解决大数据量/很多列 datagrid滚动性能问题的办法:
Flex Smooth Scrolling DataGrid:
http://hash-pipe.com/2008/11/flex-smooth-scrolling-datagrid/
http://blogs.adobe.com/aharui/2008/11/faster_datagrid_horizontal_scr.html





动态调整DataGrid列的显示:
http://www.cnblogs.com/ping58/archive/2010/05/27/1745579.html




FLex datagrid list等的行style(背景色/字体/加粗等)设置:
通过itemrender让datagrid中选定的行的字体变粗:
Flex DataGrid Selected Row Styling:
http://www.switchonthecode.com/tutorials/flex-datagrid-selected-row-styling

List/ComboBox Row Backgrounds in Flex:
http://www.barneyb.com/barneyblog/2007/06/22/listcombobox-row-backgrounds-in-flex/
http://blog.csdn.net/terryzero/archive/2010/02/23/5321002.aspx
通过工厂去创建datagrid列的itemrender;适用为动态增加的datagridcolumn添加itemrender:
DIFFERENT ROWS IN DATAGRID – PROGRAMMATICALLY ADDED ITEMRENDERERS (CLASSFACTORY AND IFACTORY):
http://www.flexer.info/2009/01/09/different-rows-in-datagrid-programmatically-added-itemrenderers-classfactory-and-ifactory/
Flex datagrid/advancedatagrid按条件显示行的背景颜色:
http://blog.csdn.net/cfhacker007/archive/2010/08/03/5784523.aspx






Flex使用弹出窗口为DataGrid添加新数据:
http://www.iteye.com/topic/356788






设置s:NavigatorContent的vislble和includeInLayout:
http://stackoverflow.com/questions/3755806/flex-is-it-possible-to-hide-some-tabs-in-tab-navigator-and-show-them-only-when-cprivate function clone( source:Object ) :*{var myBA:ByteArray = new ByteArray();myBA.writeObject( source );myBA.position = 0;return( myBA.readObject() );}var newAC:ArrayCollection = new ArrayCollection( clone( originalAC.source ) ); //方式一var myAC:ArrayCollection = new ArrayCollection( ObjectUtil.copy( originalAC.source ) as Array ); //方式二





为一个arrayCollection指定多个filterFunction:
ArrayCollection with multiple filter functions:
http://blog.rotundu.eu/flex/arraycollection-with-multiple-filter-functions/





Finding substrings and patterns in strings:
http://livedocs.adobe.com/flex/3/html/help.html?content=09_Working_with_Strings_09.html






TabBar 和 LinkBar例子:
http://learn.adobe.com/wiki/display/Flex/TabBar+and+LinkBar





Determining when an ArrayCollection changes in Flex:
http://blog.flexexamples.com/2008/05/14/determining-when-an-arraycollection-changes-in-flex/

热点排行