ColorLine Drag event not getting triggered

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
venus
Newbie
Newbie
Posts: 8
Joined: Fri Jan 27, 2012 12:00 am

ColorLine Drag event not getting triggered

Post by venus » Thu Feb 09, 2012 8:27 am

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);

venus
Newbie
Newbie
Posts: 8
Joined: Fri Jan 27, 2012 12:00 am

Re: ColorLine Drag event not getting triggered

Post by venus » Fri Feb 10, 2012 4:33 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: ColorLine Drag event not getting triggered

Post by Sandra » Wed Feb 15, 2012 3:16 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply