Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Unassigned: Hover menu dosen't work on gridview row [27761]

$
0
0
I use gridview with hover menu extender in code behind I set target ID in gridview row created event with gridview row id but it higlight all grid not each row on mouse over it is my code

<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("naziv") %>'></asp:Label>
<asp:Panel ID="Panel1" runat="server" CssClass="HoverMenu">

<asp:LinkButton ID="LinkButton1" runat="server">edit</asp:LinkButton>
<asp:LinkButton ID="LinkButton2" runat="server">delete</asp:LinkButton>
</asp:Panel>
<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" HoverCssClass="Hover"
PopupControlID="Panel1"
PopupPosition="Right"
TargetControlID="Panel1"
PopDelay="50">

</cc1:HoverMenuExtender>


</ItemTemplate>

code behind
protected void gr_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HoverMenuExtender hov = e.Row.FindControl("HoverMenuExtender1") as HoverMenuExtender;
e.Row.ID = e.Row.RowIndex.ToString();
hov.TargetControlID = e.Row.ID;


}
}
it dosent work higlight all gridview not separet row on mouse over
I am use ajax tool kit version 4.5.7.1213
Please help


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>