Hi,
I have drawn a line at the SeriesClick Event. Now i want to drag the color line to desired area in the chart. When i tried to do so, i ave made AllowDrag to true and used the below line of code. But the following event is not getting triggered. Plz Advice. i am using .Net 4.0 VS2010
colorLine1.DragLine += new EventHandler(colorLine1_DragLine);
ColorLine Drag event not getting triggered
Re: ColorLine Drag event not getting triggered
It works well for Windows. but I need it for Web chart.
Am able to add colorline tool as follows from C#
WebChart1.Chart.Tools.Add(colorLine1);
colorLine1.Axis = WebChart1.Chart.Axes.Bottom;
colorLine1.Active = true;
colorLine1.AllowDrag = true;
colorLine1.Value = 100;
colorLine1.Pen.Color = Color.Blue;
colorLine1.Draw3D = false;
colorLine1.DragRepaint = true;
colorLine1.DragLine += new EventHandler(colorLine1_DragLine);
The Event colorLine1_DragLine is not getting fired. I am not able to drag colorline in web chart. Plz advice ASAP. It is must in my project. Based on that i need to further implement different types of customised cursors for web chart.
Am able to add colorline tool as follows from C#
WebChart1.Chart.Tools.Add(colorLine1);
colorLine1.Axis = WebChart1.Chart.Axes.Bottom;
colorLine1.Active = true;
colorLine1.AllowDrag = true;
colorLine1.Value = 100;
colorLine1.Pen.Color = Color.Blue;
colorLine1.Draw3D = false;
colorLine1.DragRepaint = true;
colorLine1.DragLine += new EventHandler(colorLine1_DragLine);
The Event colorLine1_DragLine is not getting fired. I am not able to drag colorline in web chart. Plz advice ASAP. It is must in my project. Based on that i need to further implement different types of customised cursors for web chart.
Re: ColorLine Drag event not getting triggered
Hello venus,
Sorry for the delay. There is functionality of Tools or Chart you cannot use in ASP.Net project, so, In WebForms applications the webchart is an image rendered from the server and if the case of ColorLine, so you can not drag directly the line as you do in Winforms. If you want move colorLine you can use Tool ScrollBar or Button to change its position. On the other hand, you would be interested know that in last versions of TeeChart.Net offers you Silverlight assembly that allow you achieve the same results of Winforms.
Thanks,
Sorry for the delay. There is functionality of Tools or Chart you cannot use in ASP.Net project, so, In WebForms applications the webchart is an image rendered from the server and if the case of ColorLine, so you can not drag directly the line as you do in Winforms. If you want move colorLine you can use Tool ScrollBar or Button to change its position. On the other hand, you would be interested know that in last versions of TeeChart.Net offers you Silverlight assembly that allow you achieve the same results of Winforms.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |