Click here to Skip to main content
15,885,792 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi Dear All

could anyone please tell me how to display a graph as a popup on mouse hover on a linkbutton in a GridView .I have used chart control for displaying graph. If anyone has idea about this kindly help me.

below given is the GridView display.


Name Amount1 Amount2 Amount3

Ajay 200 100 300

John 400 300 100


I would like to display a column graph with amount values on Y-Axis and amount labels
Amount1,Amount2,Amount3 on X-Axis while placing the mouse cursor on Name.
ie, if I place the cursor on Ajay a graph with Ajay's details
(Name,Amount1,Amount2,Amount3) will be displayed .


Default.aspx
---------------

ASP.NET
<asp:GridView ID="GVClaims" runat="server" AutoGenerateColumns ="false">
<asp:TemplateField HeaderText="S.No">
<%#Container.DataItemIndex+1 %>
<asp:BoundField HeaderText="ID" DataField="id" Visible="false"/>
<asp:TemplateField HeaderText="CorporateName" >
<asp:LinkButton ID="lnkName" runat="server" Text='<%#Eval("name") %>' commandargument='<%#Eval("id") %>'
CommandName="NameGraph" >
<asp:BoundField HeaderText="Amount1" DataField="Amount1" />
<asp:BoundField HeaderText="Amount2" DataField="Amount2" />
<asp:BoundField HeaderText="Amount3" DataField="Amount3" />
Posted
Updated 16-Jun-14 23:43pm
v2
Comments
Sergey Alexandrovich Kryukov 17-Jun-14 1:59am    
If you have used the chart control, why not using it again?
—SA
SubhashRokzzz 17-Jun-14 2:00am    
Now I want to remove the chart control and make this as a popup
Sergey Alexandrovich Kryukov 17-Jun-14 11:42am    
First of all, pop-ups are evil (real pop-ups, creating new browser window). Second of all, what's the difference?
—SA
Sunasara Imdadhusen 17-Jun-14 4:53am    
Can you please share your aspx or html code i will show you how to show graph in popup.
Sunasara Imdadhusen 17-Jun-14 5:42am    
where is code for graph. please do not post your code inside the comment box please use Improve Question option.

1 solution

Hi friends I have solved this problem myself. Thank you.... :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900