Jscript datagrid scroll

  • Thread starter Thread starter Graeme
  • Start date Start date
G

Graeme

Hello

I'd like to call JS function from the ItemDataBound event to scroll datagrid
down say 200px. Ideas please?

Thanks
Graeme
 
Thanks. I just want to initiate js function from within VB ... actually
currently use the scrollIntoView method ... trouble is it always pulls my
required record to top, and I want to offset it down a bit. Haven't yet
found a way round this.
Works OK, but just want to improve cosmetics. But I'll take a look maybe at
scrollTo.

Thanks
Graeme
 
Graeme,

ItemDataBound event happens on the server and you can't call any client code
at this time. What you can do is to setup client-side events to run
javascript functions.

As far as scrolling is concern, there is windows.scrollTo(...) method. Also
<td> has scrollIntoView() method. Check if it what you want.

Eliyahu
 
Back
Top