When I populate the grid and hover over the items I always receive the popup for the first row regardless which row I hover over.
Any thoughts?
Here is the code for the rowdatabound and the OnAjaxUpdate functions.
protected void gvSelected_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Vehicle v = (Vehicle)e.Row.DataItem;
string avinnumber = v.Vin;
VinRadToolTipManager.TargetControls.Add(e.Row.ClientID, avinnumber, true);
}
}
//**************** Passing Wrong value !!!!!!!!!!!!!!!!!!!!!!!!!!
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
{
Control ctrl = Page.LoadControl("infovin.ascx");
args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
InfoVin details = (InfoVin)ctrl;
details.Avinnumber = args.Value;
}
Here is my ToolTipManager and Grid
<telerik:RadToolTipManager ID="VinRadToolTipManager" runat="server" Position="BottomCenter"
Animation="None" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Mouse" Width="350px"
Height="150px" Style="font-size: 18px; text-align: center; font-family: Arial;"
RenderInPageRoot="true" skin="WebBlue" HideEvent="LeaveToolTip" AutoCloseDelay="0" Sticky="false">
</telerik:RadToolTipManager>
<table width = "100%">
<tr>
<td align="center" valign="top"> <asp:Label id="srMessage" Font-Bold="true" ForeColor="Red" runat="server"/>
<asp:Panel id="multiResults" runat="server">
<table width="100%">
<tr>
<td align="center">
<asp:Label id="lblMultiGrid" Font-Bold runat="server" />
<asp:GridView ID="gvSelected" runat="server" ItemStyle-VerticalAlign=Top align=left AllowPaging="false" onRowDataBound="gvSelected_RowDataBound" OnRowCreated="gvSelected_RowCreated" OnSelectedIndexChanged="gvSelected_SelectedIndexChanged" PageSize="15" AutoGenerateColumns="False" ShowFooter="false" Width="100%" >
<Columns>
<asp:BoundField HeaderText="VIN" DataField="Vin" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Year" DataField="Modelyear" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Manufacturer" DataField="Make" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Model" DataField="Model" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Body Style" DataField="Bodystyle" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Coll" DataField="Collsymbol" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Comp" DataField="Compsymbol" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="VSR" DataField="symbol" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="AntiTheft" DataField="Antitheft" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="Passive Restraint" DataField="Restraint" HeaderStyle-HorizontalAlign="Left"/>
<asp:BoundField HeaderText="AntiLock Brakes" DataField="Antilockbrakes" HeaderStyle-HorizontalAlign="Left"/>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>