This question is locked. New answers and comments are not allowed.
Hi,
I use a RadCartesianChartView in a MVVM application.
I bind Zoom and PanOffset to two properties in the model.
Both values are set depending on the data.
So for an example if I get a lot of data I use greater zoom values.
And I also try to set PanOffset - which brings up a different problem.
But let me stay at the binding here....
With this markup nothing happens.
When I change it to
it works for zoom.
Notice I changed the binding to TwoWay - which is not intended in my case - but unfortunately I have to do this else the value is not bound.
About Panning - is there a MVVM fitting way to scroll to the last item?
With CartesianChart where I have "percentage values" this is easy (the problem there - these values are not bindable).
I just set RangeStart and SliderSelectionStart to the same 0.X value and the end to 1.
But with RadChartView I have to know the layout (width) in order to set the scroll position.
By the way - the binding problem also occures with WPF.
Regards
Manfred
I use a RadCartesianChartView in a MVVM application.
I bind Zoom and PanOffset to two properties in the model.
Both values are set depending on the data.
So for an example if I get a lot of data I use greater zoom values.
And I also try to set PanOffset - which brings up a different problem.
But let me stay at the binding here....
With this markup nothing happens.
<telerik:RadCartesianChart Grid.Row="1" x:Name="rcData" PanOffset="{Binding PanOffset, Mode=OneWay}" Zoom="{Binding Zoom, Mode=OneWay}">When I change it to
<telerik:RadCartesianChart Grid.Row="1" x:Name="rcData" PanOffset="{Binding PanOffset, Mode=OneWay}" Zoom="{Binding Zoom, Mode=TwoWay}">it works for zoom.
Notice I changed the binding to TwoWay - which is not intended in my case - but unfortunately I have to do this else the value is not bound.
About Panning - is there a MVVM fitting way to scroll to the last item?
With CartesianChart where I have "percentage values" this is easy (the problem there - these values are not bindable).
I just set RangeStart and SliderSelectionStart to the same 0.X value and the end to 1.
But with RadChartView I have to know the layout (width) in order to set the scroll position.
By the way - the binding problem also occures with WPF.
Regards
Manfred