4 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 31 Aug 2009, 05:52 AM
Hello
You can use as context menu and display it on the hovering over the required column using the code below:
aspx:
c#:
js:
Thanks
Princy.
You can use as context menu and display it on the hovering over the required column using the code below:
aspx:
<telerik:RadContextMenu ID="RadContextMenu1" runat="server" > |
<Items> |
<telerik:RadMenuItem Text="Text1" /> |
<telerik:RadMenuItem Text="Text2" /> |
<telerik:RadMenuItem Text="Text3" /> |
</Items> |
</telerik:RadContextMenu> |
c#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
{ |
if (e.Item is GridDataItem) |
{ |
GridDataItem dataItem = (GridDataItem)e.Item; |
dataItem["ColumnUniqueName"].Attributes.Add("onmouseover", "showMenu(event);"); |
} |
} |
js:
function showMenu(e) |
{ |
var contextMenu = $find("<%= RadContextMenu1.ClientID %>"); |
if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) |
{ |
contextMenu.show(e); |
} |
$telerik.cancelRawEvent(e); |
} |
Thanks
Princy.
0

Rahul
Top achievements
Rank 1
answered on 31 Aug 2009, 06:38 AM
Hello Princy thanks for reply
I don't want menu in rad controls ... I want to show the panel contains the textboxes and labels and some information ... i want show that panel on mouse hover on grid row item ...... Using the mouse Hover extender in AJAx. or Your inbulid funcitons? Is any way to achieve this functionality.
Hovering the Panel on Radgrid Item .
Plese reply urgent....
Thanks
Regards
Rahul
I don't want menu in rad controls ... I want to show the panel contains the textboxes and labels and some information ... i want show that panel on mouse hover on grid row item ...... Using the mouse Hover extender in AJAx. or Your inbulid funcitons? Is any way to achieve this functionality.
Hovering the Panel on Radgrid Item .
Plese reply urgent....
Thanks
Regards
Rahul
0
Accepted

Shinu
Top achievements
Rank 2
answered on 31 Aug 2009, 09:34 AM
Hi Rahul,
You can achieve the desired scenario using a GridTemplateColumn as shown below.
ASPX:
Thanks
Shinu
You can achieve the desired scenario using a GridTemplateColumn as shown below.
ASPX:
<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:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
<asp:Label ID="Label1" runat="server" Text="Hello"></asp:Label> |
</asp:Panel> |
<cc1:HoverMenuExtender ID="HoverMenuExtender1" TargetControlID="lblName" runat="server" |
PopupControlID="popupMenu" PopupPosition="right" PopDelay="50"> |
</cc1:HoverMenuExtender> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
Thanks
Shinu
0

Rahul
Top achievements
Rank 1
answered on 31 Aug 2009, 10:10 AM
Thank you very much