This is a migrated thread and some comments may be shown as answers.

How to add or close tab dynamically?

1 Answer 409 Views
TabbedForm
This is a migrated thread and some comments may be shown as answers.
nima
Top achievements
Rank 1
Veteran
nima asked on 02 Nov 2020, 08:23 AM

Hi

When the program start one tab is open by default. How do i close that and open my tab dynamically?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 02 Nov 2020, 04:10 PM

Hello, Nima,

By default, in RadTabbedForm one tab is always selected and shown initially. You can change the selected tab by clicking over each of them with the mouse or programmatically as shown below:

this.radTabbedFormControl1.SelectedTab = radTabbedFormControlTab2;

Thus, the currently open tab will automatically close and the second tab will open.

If you want to add a new tab, please refer to the following code snippet:

RadTabbedFormControlTab myTab = new RadTabbedFormControlTab();
this.radTabbedFormControl1.Tabs.Add(myTab);

I hope this information helps. Let me know if I can assist you further.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

agustin
Top achievements
Rank 1
Iron
Iron
commented on 17 Nov 2021, 07:11 PM

Hello Nadia, could you tell me how to open a form that I have created from windows, within a tab of a RadTabbedFormControl ...
Dinko | Tech Support Engineer
Telerik team
commented on 18 Nov 2021, 01:23 PM

We will need more information regarding your setup to better understand the approach. If you can provide a sample project and information from where you want to open a new form, that will be great. This way we can think and provide you with a suitable solution.

 

Tags
TabbedForm
Asked by
nima
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or