I am trying to set a FarPoint Grid to return to the same active column
when the user goes to another page, so that they don't have to scroll
back to the desired column again. Supposedly this can be
accomplished with client side scripting. Here is the code I'm using.
The values are correct on my aspx.vb code behind page but never make
it to my aspx html page. Any help will greatly appreciated. I've
made a career trying to get this to work.
<script language="javascript">
function window.onload()
{
var spread = FpSpread1;
//window.alert ("function");
// debugger;
if(spread.ActiveCol>-1)
{
var cell =
spread.GetCellByRowCol(spread.ActiveRow,spread.Act iveCol);
var colHeader =
spread.all(spread.id+"_colHeader");
var view = spread.all(spread.id+"_view");
if (view!=null) {
view.scrollLeft = cell.offsetLeft;
}
if (colHeader!=null) {
colHeader.scrollLeft= cell.offsetLeft;
}
}
}
</script>
</HEAD>