Hello Telerik Support Team,
I'm trying to add a custom button for the RadImageEditor for my application. When I try to do so using
RadMenuItem cst = new RadMenuItem("Item");
radImageEditor1.ImageEditorElement.CommandsElement.CommandsStackEleemnt.Children.Add(cst);
This does get me the button I need, but I am unable to extend add an event handler to this button.
However If I were to create a button and add it to the element by extending RadMenuItem to override the onclick event within a custom class like so:
CustomMenuItem custom = new CustomMenuItem("CustomMenuItem");
radImageEditor1.ImageEditorEleemnt.CommandsElement.CommandsStackElement.Children.Add(custom);
This will get me a flat generic box the form in which I am unable to modify the style of the button to fit with the rest of the form, however this approach will allow me to define my event handler.
How can I go about it to create a proper button within the image editor side bar (to clarify the side bar below the command elements, and be able to setup the onclick to run the function needed as intended?
Thanks,