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

Sliders lose value when focus lost

3 Answers 61 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Richard Ellis
Top achievements
Rank 1
Richard Ellis asked on 30 Oct 2013, 11:30 AM
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.

3 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 04 Nov 2013, 10:01 AM
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 >>
0
Richard Ellis
Top achievements
Rank 1
answered on 05 Nov 2013, 10:25 AM
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.
0
Kiril Vandov
Telerik team
answered on 07 Nov 2013, 03:18 PM
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 >>
Tags
Slider
Asked by
Richard Ellis
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Richard Ellis
Top achievements
Rank 1
Share this question
or