scroll item into view

2 posts, 0 answers
  1. robert
    robert avatar
    27 posts
    Member since:
    Aug 2011

    Posted 21 Aug 2014 Link to this post

    Hello, i still evaluating Telerik gantt. I have made me a sample project in mvvm and i add some gantttasks with sample
    data. Now i want to use the ScrollingService.ScrollIntoView to item function but how can i access it from viewmodel?
    I also using telerik viewmodelbase for the commands in my viewmodel. Can you please give me a hint?


  2. Kalin
    Kalin avatar
    1284 posts

    Posted 22 Aug 2014 Link to this post

    Hello Robert,

    The best possible approach I can suggest you would be to use a static RoutedCommand and CommandBindings. The RoutedCommand will call the ScrollIntoView method, this way you would be able to execute the RoutedCommand from the ViewModel passing the desired GanttTask. For your convenience I have prepared a sample project which demonstrates the exact approach.

    Hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top