当前位置: 代码迷 >> Web前端 >> [转]关于Spark List控件跟Spark DataGrid控件的提示
  详细解决方案

[转]关于Spark List控件跟Spark DataGrid控件的提示

热度:46   发布时间:2012-10-08 19:54:56.0
[转]关于Spark List控件和Spark DataGrid控件的提示
http://bbs.9ria.com/viewthread.php?tid=84874&extra=page%3D1%26amp%3Borderby%3Ddateline%26amp%3Bfilter%3D2592000

在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);

希望你能喜欢以上提示
  相关解决方案