This is a migrated thread and some comments may be shown as answers.

Is there a palette changed event?

1 Answer 78 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 07 Apr 2016, 05:22 AM

Is there any easy way to get notified if the user changes the palette through the right click menu?

 

I am currently handling the ContextMenuOpening event so that I can find all of the palette menu items and add click event handler individually, but this is awkward and I was hoping for a more direct method.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Apr 2016, 08:44 AM
Hello Steve,

Thank you for writing.

Handling the ContextMenuOpening event is a suitable approach. However, you can detect when the palette is changed by using the following code:
this.radChartView1.Area.View.PropertyChanged+=View_PropertyChanged;

private void View_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName=="Palette")
    {
 
    }
}

I hope this information helps. Should you have further questions I would be glad to help.

 Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or