Hello Ching-Yen,
Just a quick follow up on the RadPanelBar code I sent you to hide the button.
In order to make sure the button does not appear in certain scenarios, please subscribe to the
ControlAdded event of the
RadPanelBar, and set the visibility of the button to
Hidden (as opposed to
Collapsed in the code I sent you before). You have to set the
Visibility of the button to Hidded in the form constructor.
Please use the code below:
private
void Form1_Load(object sender, EventArgs e)
{
radPanelBar1.ControlAdded += new ControlEventHandler(radPanelBar1_ControlAdded);
((RadPanelBarOverFlow)radPanelBar1.RootElement.Children[0].Children[0].Children[1]).DropDownButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
void
radPanelBar1_ControlAdded(object sender, ControlEventArgs e)
{
((RadPanelBarOverFlow)radPanelBar1.RootElement.Children[0].Children[0].Children[1]).DropDownButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
}
If you have additional questions, please contact me again.
Regards,
Kiril
the Telerik team