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

RadToolTip Issue inside the Button

1 Answer 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Ranganath
Top achievements
Rank 1
Ranganath asked on 09 Jun 2009, 01:01 PM

Hi,

Here is the code which iam using.

<asp:Button runat="server" ID="btnRFQs" Text='RFQ' Visible="true"

                    CssClass="btn1" onclick="btnRFQs_Click" />

 

<telerik:RadToolTip runat="server" ID="RadToolTipRfq" Sticky="true" Position="MiddleLeft"

   Height="300px" Width="600px" Animation="Fade" ShowEvent="OnFocus" ShowDelay="0"

   RelativeTo="Element" TargetControlID="btnRFQs" HideEvent="ManualClose">

  <asp:Panel ID="tooltipPanel" runat="server">

 

   <telerik:RadGrid ID="rgRfq" runat="server" AllowPaging="True" GridLines="Horizontal"

  Skin="Default" PageSize="10">

   <PagerStyle Mode="Slider" />

   <MasterTableView AutoGenerateColumns="false" DataKeyNames="" CommandItemStyle-CssClass="RGCmdHeader">

   <Columns>

  <telerik:GridBoundColumn DataField="" HeaderText="Rfq" HeaderStyle-CssClass="GridHeadernew">

   </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="" HeaderText="" HeaderStyle-CssClass="GridHeadernew">

  </telerik:GridBoundColumn>

  <telerik:GridBoundColumn DataField="" HeaderText="" ItemStyle-HorizontalAlign="Right" HeaderStyle-CssClass="GridHeadernew">

 </telerik:GridBoundColumn>

</Columns>

</MasterTableView>

                        </telerik:RadGrid>

                    </asp:Panel>

                </telerik:RadToolTip>

 

Iam binding the Grid (i.e. rgRfq ) at run time. But I am not able to get the ToolTip when I focus the cursor on the Button.

I am able to See the ToolTip only when I click on the Button. Please let me know I missed any thing. If not why  I am not able to get this feature.

Please guide me how to get this fetureā€¦

Thanks,
Ranganath.S

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Jun 2009, 10:17 AM
Hi Ranganath,

As far as I can see form your code, the grid is not relevant to the tooltip and the button because they are not embedded in it. I am not sure what exactly you mean by setting the focus to the button but the only way you can set the focus except for clicking the button is to use the Tab key. I built up a test demo based on your code and tested the Tab key there and everything worked as expected, when the button gets the focus, the tooltip shows - please see the attached test page.

On a side note, if you by any chance want to show the tooltip when the mouse is on the button (which is different than giving the focus to the button), you should simply remove the ShowEvent setting - the default show event is OnMouseOver. 

Sincerely yours,
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
Ranganath
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or