RadRibbonForm and Mdi help please.

2 posts, 0 answers
  1. Jonathan Zee
    Jonathan Zee avatar
    22 posts
    Member since:
    Mar 2009

    Posted 27 Sep 2010 Link to this post

    Hi guys,

    Are there any examples available that shows how to implement a mdi application where the main form (frame) is a RadRibbonForm and all the child forms have its own RadRibbonMenu? which would be show on the frame when the child is the active document?

    For example:
    1) A RadRibbonForm acting as the main frame of the application.
    2) A child form called Party Form with its own PartyRibbonMenu
    3) A child form called Products Form with its own ProductRibbonMenu


    If u open a new party form, the form is opened as a new child window in the mdi client window and the main mdi frame window's RibbonMenu is replaced with the party form's PartyRibbonMenu.
    Subsequently, if you open a new products form, the RibbonMenu is changed to the ProductRibbonMenu and if you switch between the 2 forms, the menu would change accordingly. (See attached images with child forms and their own menus).

    p.s. This was previously done with Telerik Controls for Winforms 2009 Q2 but stopped working when we upgraded to the latest version.
    We are in the process of reviewing the current app to see if there's any changes required to make it work with the new version.

    Thanks

    Jonathan



  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 30 Sep 2010 Link to this post

    Hi Jonathan,

    Regarding 2007 Microsoft Office System UI Design Guidelines, RibbonBar control is not designed to support MDI functionality. RadRibbonBar supports partially MDI. When RadRibbonBar is placed in a MDI parent form it shows the Min, Max and Close buttons. In addition, it can be very easy to add a Group (formerly known as Chunk) for each child form, here is sample code about adding Groups programmatically:

    RibbonTab tab = new RibbonTab();
    tab.Text = "Form1";
    this.radRibbonBar1.CommandTabs.Add(tab);
      
    RadRibbonBarGroup group = new RadRibbonBarGroup();
    tab.Items.Add(group);
      
    RadButtonElement button = new RadButtonElement();
    button.Text = "Sample Button";
    group.Items.Add(button);

    You can read more about adding RadRibbonBar tabs programmatically in the online documentation.

    In addition, please refer to our example RadRibbonBar >> MDI layout in the Examples application that we provide with the installation package.

    I hope this helps.

    Sincerely yours,
    Svett
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top