Accessing unnamed RibbonGroups

2 posts, 1 answers
  1. Chris
    Chris avatar
    3 posts
    Member since:
    Oct 2011

    Posted 28 Oct 2011 Link to this post


    I am wondering what the best way to access RibbonGroups that belong to a RibbonTab is.  I am generating RibbonGroups dynamically, and they are not explicitly named, so I can't access them by name.  I tried writing some code to get the RibbonGroup children of a RibbonTab, but the children seem to be mostly Grids and Borders.

    What I would like to do is animate all RibbonGroups that belong to a tab when that tab is opened.  Is there an easier way of doing this, or what can I do to access the properties of the RibbonGroups, and storyboard them?

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2986 posts

    Posted 02 Nov 2011 Link to this post

    Hi Chris,

    Usually the RadRibbontab.Items collection will hold the RadRibbonGroups inside the tab. You can also use RadRibbonTab.ItemContainerGenerator.ContainerFromItem() method if you use databinding.  
    Which properties of the RadRibbonGroup do you need to animate? Please note that animating Width or Height will be impossible or buggy in most cases. 

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top