This question is locked. New answers and comments are not allowed.
In my app most screens have a list of objects in a grid and the concept of a currently selected object. I need to be able to force the currently selected object (row in the grid) to be visible in the grid when a user goes back to a page. Right now if the user selects an item that is far down the list when they come back to the page they have to scroll to the item again to see that it is still selected. Is there any way to do this? Here is a little piece of java script I use to change the look of the currently selected row in the grid. I was hoping to be able to insert something in here like: row.scrollTo or something.
function onAccountListLoaded() { // highlight the account in the list that is the currently selected account <%if(Session["CurrentAccount"]!=null){ %> var grid = $('#AccountList').data('tGrid'); var index=0; while((row = grid.$rows()[index++])!=null) { if(row.cells[0].innerHTML==<%=((MDIT.Accounting.Library.Data.Account)Session["CurrentAccount"]).Id %>) row.className = 't-state-error'; } <%} %> }