This question is locked. New answers and comments are not allowed.
Hi,
I have a radtabstrip (within a documentpanel) the tabstrip has about 20 tabs, each tab contains either a datagridview or a tablelayoutpanel with several controls in it (about 30 textboxes/labels). i want to dynamically change the visibility of the tabs, when i click a certain node in a treeview, the right tabs should be shown/hidden.
so i check which tabs are already visible and hide them as following:
public void hideTabs()
{
foreach (TabItem ti in radTabStripMain.Items)
{
if (ti.Visibility == Telerik.WinControls.ElementVisibility.Visible)
{
ti.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
}
}
I have a radtabstrip (within a documentpanel) the tabstrip has about 20 tabs, each tab contains either a datagridview or a tablelayoutpanel with several controls in it (about 30 textboxes/labels). i want to dynamically change the visibility of the tabs, when i click a certain node in a treeview, the right tabs should be shown/hidden.
so i check which tabs are already visible and hide them as following:
public void hideTabs()
{
foreach (TabItem ti in radTabStripMain.Items)
{
if (ti.Visibility == Telerik.WinControls.ElementVisibility.Visible)
{
ti.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
}
}
and in my selected event of the treeview i've put:
private void rtvImmo_Selected(object sender, EventArgs e)
{
hideTabs();
switch (rtvImmo.SelectedNode.Level)
{
case 0:
tiPatrimonium.Visibility = Telerik.WinControls.ElementVisibility.Visible;
tiPatrimoniumLasten.Visibility = Telerik.WinControls.ElementVisibility.Visible;
tiPatrimoniumVerzekeringen.Visibility = Telerik.WinControls.ElementVisibility.Visible;
radTabStripMain.SelectedTab = tiPatrimonium;
...
However, this takes ages to load the new tabs to be shown?
any help would be appreciated!
Regards,
Peter