Sliders lose value when focus lost

4 posts, 0 answers
  1. Richard Ellis
    Richard Ellis avatar
    26 posts
    Member since:
    Mar 2010

    Posted 30 Oct 2013 Link to this post

    First things first: we are using version 2012.2.0725.1040 of the Telerik Silverlight 4 controls.

    We have a RadWindow containing a UserControl, which in turn has RadSliders added dynamically in code behind as follows:
    public class CubiksRadSlider : RadSlider
    {
        public int Row { get; set; }
    }
     
    // Add Slider (rowIndex, slider indexes refer to columns rows of a grid)
    CubiksRadSlider slider = new CubiksRadSlider()
    {
        Tag = string.Format("{0}_{1}", "slider", rowIndex),
        Maximum = _emailReplyViewModel.Email.MessageOptionText.Count,
        LargeChange = 1,
        Minimum = 0,
        SmallChange = 1,
        Value = 0,
        TickPlacement = TickPlacement.BottomRight,
        TickFrequency = 1,
        Margin = new Thickness(3),
        HorizontalAlignment = HorizontalAlignment.Stretch,
        VerticalAlignment = VerticalAlignment.Center,
        Row = sliderIndex
    };
     
    slider.ValueChanged += (s, args) => { slider.Value = Math.Round(slider.Value); };
     
    //Assign it's grid position
    slider.SetValue(Grid.RowProperty, rowIndex + 1);
    grid.Children.Add(slider);

    grid.InvalidateMeasure();

    The problem we are seeing is that, when you switch focus to another RadWindow and back again (it happens when the focus is regained), the sliders seem to reset back to a '0' value.

    Any help would be appreciated.

    UPDATE: In addition it seems that after the reset, selecting any of the sliders and trying to move it can cause it to jump back to it's originally set position.
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 04 Nov 2013 Link to this post

    Hello Richard,

    We are aware of that issue and I am happy to inform you that this issue is resolved in our latest binaries. Unfortunately there is no workaround for the issue.

    Please excuse us for the inconvenience caused.

    Kind regards,
    Kiril Vandov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Richard Ellis
    Richard Ellis avatar
    26 posts
    Member since:
    Mar 2010

    Posted 05 Nov 2013 Link to this post

    So... does this mean we NEED to update our license.  And will we NEED to update to the Silverlight 5 RadControls rather than the Silverlight 4 build we've been using?

    Thanks.
  5. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 07 Nov 2013 Link to this post

    Hello Richard,

    We highly recommend to our customers to update to our latest binaries as the bug fixes are included there. Furthermore, we are no longer shipping Silverlight4 binaries, you can find more info here, and we strongly encourage our customers to migrate to Silverlight5.

    Kind regards,
    Kiril Vandov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top