3.2.0

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
July 9,
http://www.activewidgets.com/javascript.forum.19945.4/setcurrentrow.html

obj.setScrollTop( obj.getCurrentRow * obj.gerRowHeight() )
July 10,
window.setTimeout(function(){
    obj.setSelectedRows([18]);
    obj.setCurrentRow(18);
if( obj.getRowPosition(obj.getCurrentRow() > obj.getRowCount() - 10){
obj.setScrollTop( obj.getCurrentRow() * obj.getRowHeight() );
}
});
July 10,

This topic is archived.

See also:


Back to support forum