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

[Solved] hover on grid -- popup control

1 Answer 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sai raghavendra sudha besta
Top achievements
Rank 1
sai raghavendra sudha besta asked on 12 Sep 2009, 09:06 AM
hi,

i am a newbie to telerik and ajax, i am trying to show a popup image on move hover for an grid item.
i have found a similar article which says i an use that a itemtemplate and show a popup.

 <telerik:GridTemplateColumn UniqueName="TemplateCol" HeaderText="TemplateCol"
                            <ItemTemplate> 
                                <asp:Label id="lblName" runat="server" Text='<%#Eval("ProductName") %>' ></asp:Label> 
 
                               
                                <asp:Panel ID="popupMenu" runat="server" style="display:none" BackColor="skyblue" > 
                                    <asp:Button  ID="btnCopy" runat="server"></asp:Button> 
                                   
                                </asp:Panel> 
                                 <cc1:HoverMenuExtender ID="HoverMenuExtender1" TargetControlID="lblName" runat="server" 
                                    PopupControlID="popupMenu" PopupPosition="right" PopDelay="50"
                                </cc1:HoverMenuExtender> 
                                
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 


the problem i am facing here is to include the assembly with the tag name "cc1" which has the "HoverMenuExtender" method, i think this is from the ajax control library.

also let me know if it is possible to catch the click event of the button "btnCopy" on the server side ( and)  is still need to be able to tell on which cell the click event was raised.
i am stuck with this problem for more than 2 days, so, please help me out.

thank you.


 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Sep 2009, 04:31 AM
Hi,

As you said the HoverMenuExtender comes  along with the Ajax ToolKit. In your case I would suggest you to use a RadToolTip where you can add the Image as the content of the RadToolTip and set its TargetID as RadGrid.

ASPX:
 
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="RadGrid1"
            <asp:Image ID="Image1" runat="server" Height="13px" ImageUrl="~/Image/Image1.gif" Width="13px" /></telerik:RadToolTip> 


Thanks
Princy
Tags
Grid
Asked by
sai raghavendra sudha besta
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or