Hi,
If I have an appointment outside the vertical viewable area, ScrollIntoView ensure that the appointment become visible but not in horizontal, I have to use the horizontal scrollbar to see my appointment...
Thank's
Alain
5 Answers, 1 is accepted
The observed by you behavior of the ScrollIntoView method is an expected one as the method scrolls only by TimeRuler and this is how the control is expected to work with its current implementation – if the TimeRuler is vertical, it will update only the vertical scrollbar and will not affect the horizontal scrollbar as in your scenario. Please, check the following article for some more detailed information concerning the ScrollIntoView method:
http://docs.telerik.com/devtools/wpf/controls/radscheduleview/features/timeruler/scrolling.html#scrollintoview-method
Hope the provided information will be helpful for you.
Regards,
Nasko
Telerik
Hi Nasko,
ok but if the TimeRuler is vertical and I need to bring the appointment who is at the far right location, what I have to do?
Actually in the ScheduleViewer. I have a week definition and each day have 4 resources...
Thank's
Alain
Could you please, send us a project that reproduces your exact scenario and will try to think of a possible for you solution how the desired behavior could be achieved?
Meanwhile, could you also please try to call the ScrollIntoView inside a Dispatcher - as it depends on the moment it is called calling it through a dispatcher could results in better scrolling.
We are looking forward to hearing from you.
Regards,
Nasko
Telerik
Hi Nasko,
I don't have any project at the moment :(
Here is the situation...
I have a WeekViewDefinition, In the view I should see Sunday through Saturday. Each day can have 2 through 4 resources. In this situation, of course, surely it's not possible to see at the same time everyday and every resources so an horizontal scrollbar appear to let the user scroll according to is needs. In my application, I implemented a logic throught a NavigationBehavior (All arrow keys).
Each appointment object or special slot object contain a border object that I change the color to indicate the new selected object during my navigation operation. If I scroll to the right and I fall outside the visible range, I need to scroll automatically to the right to have my selected object visible.
Thank's
Alain
Thank you for the detailed description. Using it we tried to reproduce your scenario but it seems the ScrollIntoView is scrolling as expected - as already explained it depends on the moment that gets called. Please, check the attached video and let us know if we didn't miss something.
I am also sending you the sample we use for our research. Could you please, try to modify it in order to reproduce the behavior observed on your side - it will be of great help for us?
Looking forward to your reply.
Regards,
Nasko
Telerik