How do I display a window or page inside an Item tab?

1 Answer 44 Views
TabbedWindow
Hussein
Top achievements
Rank 1
Hussein asked on 28 Apr 2023, 12:18 PM
How can I, for example, when clicking on a specific button, make its event open or display me a window or page in a new tab item dynamically, and all I have to do is select the page or window to display and it moves me to it and opens it inside a new tab item just like the Google Chrome browser

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 03 May 2023, 11:35 AM

Hello Hussein,

To achieve this requirement, the AddingNewTab event of the RadTabbedWindow control could be utilized. This event will occur when the add button is clicked. Then, you could create a UserControl that will contain the data to be displayed (for example, when a new tab is opened in the browser, it will display a search bar and buttons that lead open links). This UserControl could be set to the Content property of the e.Item property of the event arguments. The elements inside the UserControl that will function as the ones in the browser could be buttons that when clicked, will add a new RadTabItem to the RadTabbedWindow control.

With this being said, I have prepared a sample project that contains an implementation of the above suggestion. In order for the project to run, the Xaml version of our assemblies for the .NET 7 would have to be added. Could you give it a try?

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
Hussein
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or