[url]http://bbs.9ria.com/viewthread.php?tid=84874&extra=page%3D1%26amp%3Borderby%3Ddateline%26amp%3Bfilter%3D2592000[/url]
在Halo DataGrid控件和Halo List控件中,你需要使用scrollToIndex(index:int)属性描写使得在那个index中的item可见。但是在Spark List控件和Spark DataGrid控件中,你需要使用不同属性,如下:
对于Spark List
ensureIndexIsVisible(index:int);
对于 Spark DataGrid (version 4.5)
ensureCellIsVisible(index:int);
setSelectedIndex(index:int);
希望你能喜欢以上提示
在Halo DataGrid控件和Halo List控件中,你需要使用scrollToIndex(index:int)属性描写使得在那个index中的item可见。但是在Spark List控件和Spark DataGrid控件中,你需要使用不同属性,如下:
对于Spark List
ensureIndexIsVisible(index:int);
对于 Spark DataGrid (version 4.5)
ensureCellIsVisible(index:int);
setSelectedIndex(index:int);
希望你能喜欢以上提示
本文介绍了在使用Flex中的HaloDataGrid、HaloList、SparkList及SparkDataGrid控件时,如何通过不同的方法实现指定项目的滚动定位。对于Halo系列控件,可以使用scrollToIndex方法;而对于Spark系列,则分别采用ensureIndexIsVisible、ensureCellIsVisible及setSelectedIndex等方法。
8985

被折叠的 条评论
为什么被折叠?



