Is there a way to only display the TrackBall Info box when the right mouse button is clicked? We have a lot of info on our chart and sometimes the info box obscures the graph underneath.
To achieve your requirement, you can subscribe to the PositionChanging event of ChartTrackBallBehavior to cancel the trackball updates on mouse move. And then use the MouseRightButtonDown event to update the Position property of ChartTrackBallBehavior manually. Here is an example in code:
public partial class MainWindow : Window
{
private bool isManualPositionChange = false;
public MainWindow()
{
InitializeComponent();
this.trackballBehavior.Position = new Point(100, 321);
I also attached a sample project showing this approach. I hope it helps.
Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.