Slider not showing properly in radtooltip

3 posts, 1 answers
  1. arnaud
    arnaud avatar
    104 posts
    Member since:
    Jul 2008

    Posted 23 Oct 2008 Link to this post


    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. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 23 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. arnaud
    arnaud avatar
    104 posts
    Member since:
    Jul 2008

    Posted 23 Oct 2008 Link to this post

    thank you
Back to Top