Zoomlevel Data Binding Doesn't Work

2 posts, 0 answers
  1. paul
    paul avatar
    2 posts
    Member since:
    Jul 2010

    Posted 25 Jul 2010 Link to this post

    The zoomlevel binding doesn't seem to work,
    it seems to me that when i change the zoom level i the view model, the UI is not notified, the get method of the MapZoomLevel property was called only once when the map loads up. 
    here is my code:


    <telerik:RadMap x:Name="RadMap" ZoomLevel="{Binding MapZoomLevel, Mode=TwoWay}" Margin="4" Provider="{Binding MapProvider}">        
    <telerik:InformationLayer ItemsSource="{Binding TheSource}"/>

    i use MVVM model in the project, 
    my viewmodel inherits: INotifyPropertyChanged
            private int _zoomLevel;

            public int MapZoomLevel
                get { return (_zoomLevel); }
                set {
     _zoomLevel = value;

    the same databinding works with map center and map provider.

    Is this a bug in the component?

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 27 Jul 2010 Link to this post

    Hi Paul,

    Thank you for the feedback.
    We will fix this problem in some of our  future releases of RadMapl. We've created a PITS issue and you can check when the fix will be available using the following link.

    The map control has the built-in zoom control that uses binding to the RadMap.ZoomLevel property.
    Currently, if you want to use binding, then you should disable this zoom control. The RadMap has the ZoomBarVisibility property. To hide the zoom control you should set it to "Collapsed".
    If the zoom control is displayed, then you cannot use the binding to the ZoomLevel property.

    All the best,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top