FIX: Server error after postback when you have an invisible RadSlider control on the page

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 22 Mar 2010 Link to this post

    Hi guys,

    We have discovered a bug in RadSlider in Q1 2010 release (version 2010.1.309).

    PROBLEM
    A server error "Specified cast is not valid." can occur after postback, when you have an invisible RadSlider control (either the slider, or one of its parents, has "display:none" applied) with items, defined on the page.

    SOLUTION
    As a workaround, you can execute the following code, when the RadSlider control fires its load event:
    <script type="text/javascript"
        function OnClientLoad(sender,args) 
        { 
            sender.updateClientState(); 
        } 
    </script> 

    <telerik:RadSlider ID="RadSlider1" runat="server" ItemType="Item" OnClientLoad="OnClientLoad" 

    What is Next
    The problem is already fixed and the fix will be available in the next Latest Internal Build and the first service pack.

    Please accept our sincere apologies for the caused inconvenience.
Back to Top