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

Bug in IsEnabled property

3 Answers 55 Views
Slider
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 06 Oct 2008, 09:29 AM
When the initial value of the sliders IsEnabled Property is false, it is not possible to fully enable it again. After setting IsEnabled to true the thumb is not draggable, but I can click the  track and thus change the value.

<UserControl x:Class="SilverlightApplication8.Page_SliderTest" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    Width="400" Height="300"
    <Grid x:Name="LayoutRoot" Background="White"
        <StackPanel> 
            <Button x:Name="BtnTest01" Content="Enable slider"></Button> 
            <telerik:RadSlider x:Name="Sld01" Minimum="1" Maximum="100" IsEnabled="False"></telerik:RadSlider> 
        </StackPanel> 
    </Grid> 
</UserControl> 
 

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Net; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Animation; 
using System.Windows.Shapes; 
 
namespace SilverlightApplication8 
    public partial class Page_SliderTest : UserControl 
    { 
        public Page_SliderTest() 
        { 
            InitializeComponent(); 
            BtnTest01.Click += new RoutedEventHandler(BtnTest01_Click); 
        } 
 
        void BtnTest01_Click(object sender, RoutedEventArgs e) 
        { 
            Sld01.IsEnabled = true
        } 
    } 
 

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 06 Oct 2008, 01:38 PM
Hi Henrik,

Thank you for reporting the issue with RadSlider. Indeed, there was a problem when programatically setting the IsEnabled property. I have produced a hotfix of Telerik.Windows.Controls.dll and a sample demonstration project. You can find both files attached.

Please, let me know as soon as possible whether the hotfix works properly and according to your expectations.

Regards,
Kiril Stanoev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
hwsoderlund
Top achievements
Rank 1
answered on 06 Oct 2008, 02:28 PM
It works fine now, thank you!
0
Konstantin Petkov
Telerik team
answered on 10 Oct 2008, 08:35 AM
Hello,

We are glad the problem is solved with the patch we have sent you. Don't forget to download and upgrade your .dll-s when we announce the next update coming on Tuesday next week.

We have updated your Telerik points once again for your participation, thank you!

Greetings,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Slider
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
hwsoderlund
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or