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

Is it possible to databind RadialScale.Ranges?

3 Answers 52 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Wenrong
Top achievements
Rank 1
Wenrong asked on 29 Jun 2012, 09:56 AM
Is it possible to databind RadialScale.Ranges so that the set of ranges can be easily manipulated from the ViewModel?

3 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 03 Jul 2012, 02:57 PM
Hello Wenrong,

I have attached a sample solution which uses a databinding for the RadialScale.Ranges property. I hope it helps.

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Wenrong
Top achievements
Rank 1
answered on 09 Jul 2012, 06:26 AM
Thanks for your answer, but is there a way that doesn't require the ViewModel to know about the view? Doesn't really want to reference telerik dll in my view model assembly as it kind of breaks the MVVM model...
0
Andrey
Telerik team
answered on 11 Jul 2012, 11:23 AM
Hi Wenrong,

The gauge control does not allow to bind RadialScale.Ranges property other way without using Telerik assemblies. The GaugeRange is a data object (not a visual). And the type of RadialScale.Ranges property is the GaugeRangeCollection which can contain the instances of GaugeRange only.

Regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Gauges
Asked by
Wenrong
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Wenrong
Top achievements
Rank 1
Share this question
or