Close button click event

1 Answer 108 Views
TabbedForm
Hon
Top achievements
Rank 1
Hon asked on 21 Jun 2023, 05:40 PM
How do I listen to the click event of the close button on the tab?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 23 Jun 2023, 12:33 PM

Hi Hon,

You can subscribe to the TabRemoved event of the TabbedFormControl. The event handler will be hit when the user clicks on the tab close button.

public partial class RadForm2 : RadTabbedForm
{
    public RadForm2()
    {
        InitializeComponent();
        this.TabbedFormControl.TabRemoved += TabbedFormControl_TabRemoved;
    }

    private void TabbedFormControl_TabRemoved(object sender, RadTabbedFormControlEventArgs e)
    {
     
    }
} 

Let me know if further assistance is required.

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
TabbedForm
Asked by
Hon
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or