ScrollIntoView doesn't work in horiz

6 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 04 Dec 2015 Link to this post

    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

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 07 Dec 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 07 Dec 2015 Link to this post

    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

  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 10 Dec 2015 Link to this post

    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
  6. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 10 Dec 2015 Link to this post

    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

  7. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 15 Dec 2015 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready