Any Ideas? I'm very close to purchasing the controls but I'm struggling a little.
answered on 21 Jan 2009, 09:01 AM
Thanks for writing and for your interest in RadControls for WinForms.
1. It is possible to achieve your goal regarding the RadPanelBarGroupElement Click. However, currently we have an issue with directly firing the event for this element. We were not aware of this issue, so thank you for bringing our attention to it.
Until this issue is addressed, please refer to the following code snippet as a workaround:
RadElement element = this.radPanelBar1.ElementTree.GetElementAtPoint(e.Location);
if (element is RadPanelBarVisualElement)
for (int i = 0; i < this.radPanelBar1.Items.Count; i++)
MessageBox.Show("Clicked on: " + this.radPanelBar1.Items[i].Text);
I am using the MouseUp event of the RadPanelBar. When this event is fired I am getting the RadPanelBarGroupElement on which the mouse was on and I am showing a MessageBox with the text of the group.
2. If you want to hide the collapse/expand images of the RadPanelBarGroupElements you could use the Edit UI elements action from the smart tag of the RadPanelBarGroupElement in the Visual Studio Designer:
Open the designer and select a RadPanelBarGroupElement. Open its smart tag and click on the Edit UI elements action. In the Element hierarchy editor use the TreeView on the left to find the Telerik.WinControls.UI.RadPanelBarCaptionButton element and select it. Use the Property Grid on the right and find the DisplayStyle property. Set it to "Text" - you will no longer see the expand/collapse image of the RadPanelBarGroupElement.