:: Forum >> Version 2 >>

Give focus to a particular row (center the view)

More information on this topic is available in the documentation section: /aw.ui.grid/.

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
/javascript.forum.19945.4/setcurrentrow.html

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



This topic is archived.

Back to /aw.ui.grid/

Documentation:

Forum search