I'm using the new Spark Datagrid for a project, but I must confess the scroller is annoying me a little bit, so I would like to have some control over it.
In other words, I would like to programatically set the Datagrid scroller position to the position I want.
Thank you in advance.
hope these links will work for you.
虽然上面的链接对于得到答案很有用,但这是直接答案:
someDataGrid.grid.layout.verticalScrollPosition
Simply use ensureCellIsVisible
datagrid.ensureCellIsVisible(dgArrayCollection.length - 1,-1);
where dgArrayCollection is the dataprovider of the datagrid
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.