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

PanelBarGroupElements not expanding on setting Exanded=True

8 Answers 108 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.
acola
Top achievements
Rank 1
acola asked on 08 May 2007, 02:21 PM
When initing my form with a Panel Bar on it, I'm trying to programatically set a particular GroupElement to be expanded in my panel bar, based on a setting in MySettings. However, setting Expanded=True on the group element isn't expanding the element, nor is setting Selected=True. How do I programatically expand a group element?

If Not My.Settings.DefaultAppGroup Is Nothing Then 
    Dim defaultAppGroup As String = My.Settings.DefaultAppGroup 
    Dim groupElement As RadPanelBarGroupElement 
    For Each groupElement In RadPanelBar1.Items 
        If groupElement.Caption = defaultAppGroup Then 
           'groupElement.Selected = True 
            groupElement.Expanded = True 
            Exit For 
         End If 
     Next 
End If 

8 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 08 May 2007, 03:39 PM
Hi Anne Comes,

The solution is to use the ExpandGroup method of the group element.
We'll be happy to assist you with your issues if required.  I hope this helps.



Best wishes,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
acola
Top achievements
Rank 1
answered on 08 May 2007, 05:01 PM
I don't see an ExpandGroup method on the RadPanelBarGroupElement, nor does your documentation mention it. From the documentation:

RadPanelGroupElement.Expanded

You can programmatically expand and collapse the RadPanelGroupElements.

For Each group As RadPanelBarGroupElement In_radPanelBar.Items 
  group.Expanded = False 
Next group 



0
Boyko Markov
Telerik team
answered on 09 May 2007, 06:49 AM
Hi Anne Comes,

Could you please give me more information about the version of RadControls for WinForms you are currently using.
We've added the ExpandGroup method to RadPanelBarGroupElement  in our latest release which was shipped on 4/23/2007 so if you're using earlier versions than that it will be unavailable.
I hope this helps.

Best wishes,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
acola
Top achievements
Rank 1
answered on 09 May 2007, 12:13 PM
Well, I just purchased the Telerik controls a few days ago, so I downloaded and installed the Q1 2007, which I believe is the one you are talking about. However, I did have the demo version of Q4 2006 previously installed, so perhaps that is causing a problem? But when I hover over them in the toolbox, they say they are version 3, which I believe is the latest. Also, the documentation I quoted above is from the Q1 2007 release.

Boy am I confused!
0
acola
Top achievements
Rank 1
answered on 09 May 2007, 12:22 PM
As I think about it more: my RadPanelBar control is one I built with the demo Q4 version. When I rebuild that project (as I have done many times since installing the Q1 version), would it be automatically updating it to the most recent version of the WinForms controls? If not, how do I get the controls to update?
0
Boyko Markov
Telerik team
answered on 09 May 2007, 01:08 PM
Hi Anne Comes,

You may have references to the older assemblies in your project that uses RadPanelBar and that would cause the problem. I think that the solution here is to uninstall the RadControls for WinForms and then install the Q1 2007 release again.


Greetings,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
acola
Top achievements
Rank 1
answered on 09 May 2007, 03:18 PM
I uninstalled the Q1 version, then had to research how to uninstall the Q4 version, since the Remove button didn't appear in Add/Remove Programs. I found instructions to do that here, but after following the instructions and then reinstalling the Q1 version, the Q4 assemblies are still in the GAC, and are what is getting used in my application. So I uninstalled the 2.x versions from the GAC, and updated the references in VS. I had to then fight through some issues with getting my form to open in the Designer, but I finally got that to work.

So everything is working now, but that was a real pain. Thanks for your help.

Also, did you see that the documentation about the GroupElement.ExpandGroup is incorrect?
0
Boyko Markov
Telerik team
answered on 09 May 2007, 03:51 PM
Hello Anne Comes,

Yes, I've revised the documentation and it seems that we must update it. It will be done very soon. I'm sorry for the inconvenience. If you need further assistance with your issues I will be happy to help you with solving the issues.

Greetings,
Ray
the Telerik team

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