Get the contents of a dock using tooltips

2 posts, 0 answers
  1. Shane_A2Z
    Shane_A2Z avatar
    5 posts
    Member since:
    Jun 2007

    Posted 12 Jul 2007 Link to this post

    I am currently building a calendar with drag & drop capabilities and shows tooltips load on demand when you hover over an event but I have come across a problem...

    With tooltips, how can I obtain a label value from inside a Dock that is inside a DockZone by passing DockZone.ClientID?  I would do this using the Dock.ClientID, but the tooltips will not show outside of the DoneZone
  2. Petio Petkov
    Petio Petkov avatar
    825 posts

    Posted 16 Jul 2007 Link to this post

    Hello Shane,

    The following code illustrates how to get the value from a label inside RadDock using javascript:

    <%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
    <html xmlns="" > 
        <title>Untitled Page</title> 
        <script type="text/javascript">  
             function GetLabelText()  
                var oLabel = document.getElementById('<%=Label1.ClientID %>');           
        <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
        <rad:RadDockLayout ID="RadDockLayout1" runat="server">  
            <rad:RadDockZone ID="RadDockZone1" runat="server">  
                <rad:RadDock ID="RadDock1" runat="server" Title="RadDock1">      
                        <asp:Label ID="Label1" runat="server" Text="SomeText"/>  
            <rad:RadDockZone ID="RadDockZone2" runat="server">  
            <input type="button" onclick="GetLabelText()" value="GetLabelText" /> 

    Unfortunately I cannot understand what you want to achieve using tooltip. Please provide me with a detailed description illustrating your goals.

    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top