tootltip works with other controls, but not radRotator

6 posts, 0 answers
  1. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 26 Oct 2007 Link to this post

    hiya,

    I'm having an issue with the above.
    Tootltip works with other controls on same page, but not radRotator.
    Is this by design?

    Many thanks,

    yogi
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Oct 2007 Link to this post

    Hi Chris Yoker,

    To use RadToolTip with RadRotator you can use either the RadToolTipManager and set the ToolTip on the rotator:

    <form id="form1" runat="server">  
        <div> 
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            </asp:ScriptManager> 
            <telerik:RadToolTipManager   
                ID="RadToolTip1"   
                runat="server"   
                ></telerik:RadToolTipManager> 
            <radR:RadRotator ToolTip="Telerik News2" ID="RadRotator1" runat="server" DataMember="item" ContentFile="http://www.telerik.com/support.rss" 
                TransitionType="slideshow" TransitionEffect="gradientwipe" Width="500">  
                <FrameTemplate> 
                    <div id="newsDiv" class="module">  
                        <b> 
                            <%# DataBinder.Eval(Container.DataItem,"pubDate") %> 
                        </b>-  
                        <%# DataBinder.Eval(Container.DataItem,"title") %> 
                    </div> 
                </FrameTemplate> 
            </radR:RadRotator> 
        </div> 
    </form> 

    or you can wrap the rotator's content in some container - like the newsDiv in the example below and set the TargetControlID property of the RadToolTip to it:

    <form id="form1" runat="server">  
        <div> 
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            </asp:ScriptManager> 
            <telerik:RadToolTip   
                ID="RadToolTip1"   
                runat="server"   
                IsClientID="true" TargetControlID="newsDiv">  
                Telerik news</telerik:RadToolTip> 
            <radR:RadRotator ID="RadRotator1" runat="server" DataMember="item" ContentFile="http://www.telerik.com/support.rss" 
                TransitionType="slideshow" TransitionEffect="gradientwipe" Width="500">  
                <FrameTemplate> 
                    <div id="newsDiv" class="module">  
                        <b> 
                            <%# DataBinder.Eval(Container.DataItem,"pubDate") %> 
                        </b>-  
                        <%# DataBinder.Eval(Container.DataItem,"title") %> 
                    </div> 
                </FrameTemplate> 
            </radR:RadRotator> 
        </div> 
    </form> 



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 30 Oct 2007 Link to this post

    Hiya Georgi,

    Thanks for reply.
    I took your second recommend approach:

    <<or you can wrap the rotator's content in some container - like the newsDiv in the example below and set the TargetControlID property of the RadToolTip to it:
    >>

    It works, but only on the first item in the rotator.When it rotates to the second and third items, it doesn't work..yet, when it rotates back to the first item, it works again.

    Can you have a look at the example you created and see if it behaves in the same way?

    Many thanks,

    yogi
  4. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 02 Nov 2007 Link to this post

    hiya,

    Any update on this post?It's been 3 days now.Telerik mentions the following in the Prometheus FAQ's:

    <<you can start using “Prometheus” in new projects and will receive the same level of support as the regular RadControls>>

    It's not a major criticism on my part, just a gentle reminder :-)

    One of the most valuable things in a developer's life is time..We're taking the time to try and test Prometheus..

    Thanks folks,

    yogi
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 06 Nov 2007 Link to this post

    Hi Chris Yoker,
    I created a simple example to demonstrate how you can achieve the desired behavior - please find it attached. The idea is to add a RadToolTip to the template of the RadRotator and use the ItemDataBound event that the rotator fires to assign the TargetControlID of every tooltip control.

    Regards,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Chris Yoker
    Chris Yoker avatar
    411 posts
    Member since:
    Jul 2005

    Posted 06 Nov 2007 Link to this post

    Thanks Tsvetie,

    I made some adjustments to fit my needs and it works.

    yogi
Back to Top