How do you programmatically close a tab in TabbedWindow?

1 Answer 49 Views
TabbedWindow
Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
Timothy J asked on 01 Dec 2022, 01:07 PM
How do you programmatically close a tab in TabbedWindow?

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 05 Dec 2022, 02:43 PM

Hello Timothy J,

To achieve this behavior, you could remove the desired RadTabItem element from the Items collection of the RadTabbedWindow control as follows:

this.raddTabbedWindow.Items.Remove(this.raddTabbedWindow.SelectedItem);

To achieve this requirement in a data-binding scenario, you could remove the desired item from the collection that is bound to the ItemsSource property of the control. 

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
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
TabbedWindow
Asked by
Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or