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

scroll item into view

1 Answer 69 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
robert
Top achievements
Rank 1
robert asked on 21 Aug 2014, 12:20 PM
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?

Regards,
Robert

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 22 Aug 2014, 11:20 AM
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.

Regards,
Kalin
Telerik
 
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.
 
Tags
GanttView
Asked by
robert
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or