:: Forum >>

Vertical Scroll Bar set position

How do you set the position of left vertical scroll bar in grid control.

I have to do the same thing in the row selection. i.e; if the row is selected, even on refresh the row should be selected.

Let me know how to implement. I'm making the Proof of concept so that we can implement active widgets grid list in our application.
If I can manage to select the row after refresh, my work will be easier.

Thanks.
Sanjay Sharma
Friday, April 21, 2006
You can use setScrollTop method -

var obj = new AW.UI.Grid;
    obj.setCellData(function(col, row){return col + "." + row});
    obj.setHeaderText("header");

    obj.setColumnCount(10);
    obj.setRowCount(100);

    obj.setSelectionMode("single-row");
    obj.setSelectedRows([10]);
    obj.setScrollTop(100);

    document.write(obj);
Alex (ActiveWidgets)
Friday, April 21, 2006
Please let me know how to get the position of the scroll bar.
I want the row to get highlighted in the viewalbe area when there is a vertical scroll bar. And that selected row should display once you refresh the page.
Sanjay Sharma
Friday, April 21, 2006
look here for a possible solution


/javascript.forum.1217.8/retain-scrollbar-position-after-column.html
JH
Wednesday, May 10, 2006

This topic is archived.


Back to support forum

Forum search