Passing Value to Client

J

jmullins47

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.ActiveCol);
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top