Intercept Save Button Click Event

1 Answer 43 Views
RichTextEditor
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 05 Sep 2023, 12:27 PM

The ribbon bar has a save button... and I'd like to add special behavior when the user clicks the save button.

Is there any way to intercept or override (with add handler perhaps) the save button click event?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 07 Sep 2023, 12:30 PM

Hi Martin,

The save button at the top left corner of the control is located in the QuickAccessToolBar section. The save button will be the first element in the QuickAccessToolBarItems collection property of the RichTextEditorRibbon. You can subscribe to its MouseDown event which will be called before the Click event which executes the save logic.

this.richTextEditorRibbonBar1.QuickAccessToolBarItems[0].MouseDown += Form1_MouseDown;

private void Form1_MouseDown(object sender, MouseEventArgs e)
{
           // custom logic
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
RichTextEditor
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or