Is there a palette changed event?

2 posts, 1 answers
  1. Steve
    Steve avatar
    43 posts
    Member since:
    May 2014

    Posted 07 Apr Link to this post

    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.

  2. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 07 Apr Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top