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

Slow Loading Collapse/Show Tabs

1 Answer 91 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter
Top achievements
Rank 1
Peter asked on 17 Mar 2008, 11:05 AM
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;
        }
    }
}

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

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 Mar 2008, 12:45 PM
Hi Peter,

Could you please open a new support ticket and send me a sample application that reproduces the wrong behavior? This will allow me to give you more accurate help and to address any potential issue further.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Peter
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or