:: Forum >>
Give focus to a particular row (center the view)
Hi all,
is there a way to give focus to a particular row in the table? by giving focus, I'm not talking about selecting the row, but just center the view on this particular row, i.e. if we can only see 10 rows and I want to see the 15th on loading (in cases when we go to another screen by clicking on a row, and if we come back we want to focus on the row we selected).
Thanks
Guillaume
Friday, July 9, 2010
Saturday, July 10, 2010
window.setTimeout(function(){
obj.setSelectedRows([18]);
obj.setCurrentRow(18);
if( obj.getRowPosition(obj.getCurrentRow() > obj.getRowCount() - 10){
obj.setScrollTop( obj.getCurrentRow() * obj.getRowHeight() );
}
});
Saturday, July 10, 2010
This topic is archived.
Back to support forum
Forum search