PanelBarGroupElements not expanding on setting Exanded=True

9 posts, 0 answers
  1. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 08 May 2007 Link to this post

    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 

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 08 May 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 08 May 2007 Link to this post

    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 



  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

    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
  6. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 09 May 2007 Link to this post

    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!
  7. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 09 May 2007 Link to this post

    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?
  8. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

    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
  9. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 09 May 2007 Link to this post

    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?
  10. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 09 May 2007 Link to this post

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