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

RadSlider in a RadToolTip?

1 Answer 73 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Dave Wolf
Top achievements
Rank 1
Iron
Dave Wolf asked on 05 May 2008, 02:20 AM
Im trying to put a radslider in a radtooltip.  When I try to do this the slider doesn't render correctly.  Is this even possible to do?

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 08 May 2008, 07:23 AM
Hello Dave Wolf,
The problem is that when the RadSlider is being initialized, it is invisible (as it is in a RadToolTip). That is why, you have to call repaint for the RadSlider when the RadToolTip shows:
<body> 
<script type="text/javascript">  
function OnClientShow(sender, args)  
{  
    var slider = $find('<%= RadSlider1.ClientID %>');  
    slider.repaint();  
}  
</script> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <asp:Label ID="Label1" runat="server" Text="Label 1"></asp:Label> 
        <telerik:RadToolTip ID="RadToolTip1" runat="server" 
            Sticky="true" TargetControlID="Label1" 
            OnClientShow="OnClientShow">  
            <telerik:RadSlider ID="RadSlider1" runat="server" /> 
        </telerik:RadToolTip> 
    </form>      
</body> 

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Slider
Asked by
Dave Wolf
Top achievements
Rank 1
Iron
Answers by
Tsvetie
Telerik team
Share this question
or