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

Slider not showing properly in radtooltip

2 Answers 89 Views
Slider
This is a migrated thread and some comments may be shown as answers.
arnaud
Top achievements
Rank 1
arnaud asked on 23 Oct 2008, 10:33 AM

Hi,

Here is a simple example :

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content4" ContentPlaceHolderID="CPHmainContent" runat="Server"
    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center" 
        RelativeTo="Element" Width="320px" ManualClose="false" Height="260px" Animation="Resize" 
        Sticky="true" Skin="WebBlue" OnAjaxUpdate="OnAjaxUpdate" ShowEvent="OnClick"
    </telerik:RadToolTipManager> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:bdConnectionString3 %>" 
        SelectCommand="select * from region"></asp:SqlDataSource> 
    <asp:Repeater ID="repeater1" runat="server" DataSourceID="SqlDataSource1" OnItemDataBound="repeater1_ItemDataBound"
        <ItemTemplate> 
            <li> 
                <asp:Label ID="lblName" runat="server"><%#Eval("id_region")%></asp:Label> 
            </li> 
        </ItemTemplate> 
    </asp:Repeater> 
    <asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible="false"
        <telerik:RadSlider ID="RadSlider1" runat="server" Value="10" ClickOffset="20" Length="100" 
            MaximumValue="300" /> 
    </asp:PlaceHolder> 
</asp:Content> 



Imports System.Data 
Imports Telerik.Web.UI 
 
Partial Class xxxx 
    Inherits System.Web.UI.Page 
    Protected Sub repeater1_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) 
        Dim image As System.Web.UI.WebControls.Label = DirectCast(e.Item.FindControl("lblName"), System.Web.UI.WebControls.Label) 
        Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) 
        Me.RadToolTipManager1.TargetControls.Add(image.ClientID, currentRow.Row("id_region").ToString(), True) 
    End Sub 
    Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) 
        Me.UpdateToolTip(args.Value, args.UpdatePanel) 
    End Sub 
    Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel) 
        panel.ContentTemplateContainer.Controls.Add(Me.PlaceHolder1) 
        PlaceHolder1.Visible = True 
    End Sub 
 


As you can see if you try to reproduce it, the slider is not fonctionnal. (it appears but can't be slide)

Is it a problem of z-index or something else ? (I tryed to define the z-index without success).

Can you help ?

Thank you




2 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 23 Oct 2008, 12:43 PM
Hello Arnaud,

I suggest to examine this online KB article which is about the exact same scenario as yours. Please, note that we found a bug in the 2008.2 1001 version of the control when implementing this scenario and in order to have all working properly you should use the article approach after you have upgraded to our latest release (Q3 2008 Beta).

Greetings,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
arnaud
Top achievements
Rank 1
answered on 23 Oct 2008, 02:30 PM
thank you
Tags
Slider
Asked by
arnaud
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
arnaud
Top achievements
Rank 1
Share this question
or