Profile Picture

How to get Double-Click event in WebForms - NThinChartControl with active Zoom-Tool

Posted By joern kunze 7 Years Ago

How to get Double-Click event in WebForms - NThinChartControl with...

Author
Message
joern kunze
Posted 7 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
Hi Experts,

I want to implement in a NThinChartControl a Zoom-functionality and reset the zoom on Double click. I have added a Zoom and a MouseEventTool:
     //----- Zoom Tool
      NDataZoomTool dataZoomTool = new NDataZoomTool();
      dataZoomTool.Exclusive = true;
      dataZoomTool.Enabled = true;
      dataZoomTool.DataZoomCallback = new eventSink_ChartDataZoomCallback();
      NThinChartControl1.Controller.Tools.Add(dataZoomTool);
      NThinChartControl1.ScrollCallback = new eventSink_ChartScrollbarCallback();

     //----- MouseEventTool
      serverMouseEventTool = new NServerMouseEventTool();
      NThinChartControl1.Controller.Tools.Add(serverMouseEventTool);
serverMouseEventTool.MouseDoubleClick = new eventSink_ChartDoubleClick();

When I implement just the MouseEventTool - all is working. But as soon as I implement the DataZoomTool as well, the Event eventSink_ChartDoubleClick(...) doesnt occure anymore. The Zoom is working though.

Is there a way to reset the Zoom on double click?

Thanks for the help,
best regards,
Joern




Similar Topics


Reading This Topic