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

Hide dropdown in Radpanelbar outlookstyle

1 Answer 78 Views
Panelbar (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.
Alcatraz
Top achievements
Rank 1
Alcatraz asked on 14 Apr 2010, 07:56 PM
Hi,

Kindly help me out in hiding the dropdown in the radpanelbar when set in outlook style

I tried setting the Dropdown button's enabled property to false, visibility to hidden but still its showing.  Pls help.

Thanks
Kris

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 20 Apr 2010, 02:51 PM
Hello KrisYs,

In order to hide the dropdown button when you select a group, you need to set its Visibility to Hidden on Load of PanelBarElement. Please note that the children of RadPanelBar are changed dynamically, so you need to retake the RadDropDownButtonElement on Load as well:
RadDropDownButtonElement button;
  
public Form1()
{
    InitializeComponent();
  
    button = (RadDropDownButtonElement)this.radPanelBar1.PanelBarElement.Children[0].Children[1].Children[2].Children[0];
    button.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
  
    this.radPanelBar1.PanelBarElement.Load += new EventHandler(PanelBarElement_Load);
}
  
void PanelBarElement_Load(object sender, EventArgs e)
{
    button = (RadDropDownButtonElement)this.radPanelBar1.PanelBarElement.Children[0].Children[1].Children[2].Children[0];
    button.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}

Best wishes,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Alcatraz
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or