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

RadPanelItem & RadToolTip

1 Answer 69 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 11 May 2009, 01:05 PM
Hi to all,
I made a lot of tests with no results.
I read a lot of threads and support pages creating only confusion. 

I didn't yet understand if is it possible or not to link a RadToolTip to a RadPanelItem.
(somewhere I read it's not possible because the ClientID is not rendered... is it correct? )

The only way to solve such problem is to create a template with a LinkButton and a RadToolTip (with TargetControlID the ID of the LinButton).

<

telerik:RadPanelItem Text="Mail" Expanded="True" runat="server">

 

    <ItemTemplate>

 

        <asp:Label runat="server" ID="Label1" Text='mylabelText'></asp:Label>

 

        <telerik:RadToolTip RelativeTo="Element" ID="RadToolTip1" runat="server" Width="100" Height="10" TargetControlID="Label1" Position="MiddleRight" Text="ciao">

 

 

        </telerik:RadToolTip>

 

It works but the mouseover graphic effect of RadPanelItem disappears and the ItemClick event is not fired.

Any help/suggestion/code will be appreciated.

Regards
Andrea

In addition: wow can I generate itemtemplates binding to a datasource?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 14 May 2009, 10:08 AM
Hello Andrea,

There are a few approaches to assign a RadToolTip to elements which do not have a ClientID - the first approach is to add an ID attribute on the server and the second one is to create the tooltip on the client. Both approaches are demonstrated below:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipcalendar/defaultcs.aspx

Both the RadCalendar and the RadTreeView controls have elements which render without a client ID and the RadPanelBar should be tooltipified in the very same manner. Please, try to implement one of the suggested approaches and in case you experience further problems, open a new support ticket and send me a sample, fully runnable reproduction demo along with detailed explanations of the actual and the desired behavior and steps to reproduce.

As to your question about the item template, I am afraid I could not completely understand what exactly you mean by "wow can I generate itemtemplates binding to a datasource", please provide more details about the desired result and scenario.


Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Andrea
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or