Page 1 of 1

ColorLine Drag event not getting triggered

Posted: Thu Feb 09, 2012 8:27 am
by 15661418
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);

Re: ColorLine Drag event not getting triggered

Posted: Fri Feb 10, 2012 4:33 am
by 15661418
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.

Re: ColorLine Drag event not getting triggered

Posted: Wed Feb 15, 2012 3:16 pm
by 10050769
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,