Slow Loading Collapse/Show Tabs

2 posts, 0 answers
  1. Peter
    Peter avatar
    2 posts
    Member since:
    Mar 2008

    Posted 17 Mar 2008 Link to this post

    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

  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 20 Mar 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top