This is a migrated thread and some comments may be shown as answers.

ScrollIntoView doesn't work in horiz

5 Answers 58 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 04 Dec 2015, 02:59 PM

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

Sort by
0
Nasko
Telerik team
answered on 07 Dec 2015, 12:09 PM
Hi Alain,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christie Admin
Top achievements
Rank 1
answered on 07 Dec 2015, 03:13 PM

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

0
Nasko
Telerik team
answered on 10 Dec 2015, 11:16 AM
Hi 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christie Admin
Top achievements
Rank 1
answered on 10 Dec 2015, 02:41 PM

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

0
Nasko
Telerik team
answered on 15 Dec 2015, 07:27 AM
Hello 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Christie Admin
Top achievements
Rank 1
Share this question
or