search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

ScrollTo

Asked by Anonymous
4 months ago.

When I use ScrollTo it doesn't work, I get an error Scroll X null reference exception, what am I doing wrong?

Comment posted by Anonymous
4 months ago.

how do i use scrollTo in PostBack?

Answer posted by Dan Letecky [DayPilot]
4 months ago.

scrollTo() is a client-side method and it can only be used on the client side, in JavaScript:
https://api.daypilot.org/daypilot-scheduler-scrollto/

Comment posted by Anonymous
4 months ago.

how can i use scroll on server side?

Comment posted by Dan Letecky [DayPilot]
4 months ago.

On the server side, you can change the scrollbar position using ScrollX (in pixels).

However, the ASP.NET version has only limited ways of controlling the client-side behavior and if you want to customize it, I recommend using the JavaScript version instead. With the ASP.NET version, it is likely that you will hit similar issues in the future as well.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.