Bug in IsEnabled property

4 posts, 1 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Oct 2008 Link to this post

    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
            } 
        } 
     

  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 06 Oct 2008 Link to this post

    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.
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 06 Oct 2008 Link to this post

    It works fine now, thank you!
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 10 Oct 2008 Link to this post

    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.
Back to Top