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

How to implement two ListBox ScrollViewer synchronization

3 Answers 189 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Yuanhong
Top achievements
Rank 1
Yuanhong asked on 14 Jan 2019, 08:51 AM

This is probably just me not knowing how to implement two ListBox ScrollViewer synchronization?The practice in wpf is seting VerticalOffset or HorizontalOffset  in ScrollViewer.ScrollChanged event.But,telerik ScrollViewer 's VerticalOffset or HorizontalOffset Property setter is private.How do I implement this?

Any help would be appreciated.


3 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 16 Jan 2019, 01:59 PM
Hello Yuanhong,

I tested the described approach on my end and it is working as expected. I am attaching the sample project which i used for testing purposes. Please, check it out and let me know if it helps.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Yuanhong
Top achievements
Rank 1
answered on 17 Jan 2019, 02:05 AM

Hi Vladimir,

Thanks. That works.But, I have a new problem about Diagram' scrollBar.I try to find Diagram' scrollBar and setting it's VerticalOffset.How should I do?

Best.

0
Vladimir Stoyanov
Telerik team
answered on 18 Jan 2019, 01:58 PM
Hello Yuanhong,

I am glad to hear that the suggested approach works for you.

As for your other question, my colleague has already answered in the other forum thread that you have opened: How to find diagram's scrollViewer. May I kindly ask you to continue the discussion there in order to avoid duplicating replies?

Thank you in advance for your understanding.
 
Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListBox
Asked by
Yuanhong
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Yuanhong
Top achievements
Rank 1
Share this question
or