One Ribbon, Multiple child forms or panels?

8 posts, 0 answers
  1. Keith
    Keith avatar
    19 posts
    Member since:
    Nov 2011

    Posted 12 Nov 2011 Link to this post

    I want to have a single Ribbon and when various buttons are pressed, the area below the ribbon changes. Essentially the way MDI works, but I read, here, that the Ribbon should not be used with MDI. Is that true?

    What's the best practice for this?

    Let's say I want to have a ribbon and then a Carousel in the main area.

    Then, when an item in the carousel (or an equivalent in the ribbon) is clicked, a form (or whatever -- a new layout with new content) shows.

    I've been experimenting with a RadRibbon form, which does seem to support MDI properties. But, when the child form is maximized (the only state I want) the control box shows, even when I've turned them all off. They don't show when in Restored view, but they do when maximized.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 16 Nov 2011 Link to this post

    Hello Keith,

    Thank you for writing.

    The RibbonBar UI is not designed for MDI scenarios according to the Microsoft Office 2007 User Interface Design Guidelines, still you can use ours in such scenarios. As to question - you could hide these buttons in this way:

    public Form1()
    {
        InitializeComponent(); 

          this.IsMdiContainer = true; 
        this.radRibbonBar1.RibbonBarElement.MDIbutton.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        this.radRibbonBar1.RibbonBarElement.MDIbutton.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        this.radRibbonBar1.RibbonBarElement.MDIbutton.CloseButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        

    I hope this helps.

    All the best,
    Peter
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Thiru
    Thiru avatar
    4 posts
    Member since:
    Sep 2011

    Posted 11 Jan 2012 Link to this post

    Kind Attention Please:

    I like to have RadRibbon Form as MDI Form and multiple child forms  under that RadRibbon form

    and like to have multiple theme in radribbon form to allow users to set as they wish.

    Please provide any sample applications.
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 16 Jan 2012 Link to this post

    Hello Thiru,

    Thanks for contacting us.

    Please refer to the attached sample project.

    I hope this helps.

    Kind regards,
    Peter
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

  6. Thiru
    Thiru avatar
    4 posts
    Member since:
    Sep 2011

    Posted 17 Jan 2012 Link to this post

    Hi Peter,
    Thanks for your support/mail.
    But i cant able to get a solution.
    While saving the project i am getting the following message:
    cannot find type Telerik.WinControls.Design.Teleriktoolboxcategoryattribute in module Telerik.WinControls.dll.

    and i need the code in vb not c#

    for your reference i like to send my project
    ( i cant able to attach my project here ... if you give me any mail id - i can send the project)
    Please take care to support me.

    I request you to open the child mdi form in which i have used RadPanel like outlook.
    please get me a sample code to work in this regard.

    I am getting mad using this panel... (since i am new here with Telerik)

    Expecting your valuable support please.
    Regards,
    Thiru.
  7. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 21 Jan 2012 Link to this post

    Hello Thiru,

    Thank you for writing back.

    I would like to clarify that the attached sample in my previous answer demonstrates only the idea of how you can accomplish this task.
    In short, you need to do the following:
    1. Create a RadDropDownListElement, set MinimumSize to 140,20 and put it in a RadRibbonBar group.
    2. Add items in the RadDropDownListElement for each theme that you want to be available in the drop down.
    3. Handle SelectedIndexChanged event and set ThemeResolutionService.ApplicationThemeName to the Text of the selected Item.
    As to the exception, most likely this error appears because Visual Studio is not able to load the Telerik.WinControls.dll assembly that defines the public class TelerikToolboxCategoryAttribute.
    Please make sure that you have the correct version of the assembly referenced. If this does not help, you can try uninstalling our suite, clearing your GAC from the remaining Telerik assemblies if such exist, install the suite again and update your project references.

    In regards to the C# code, you can easily convert the code from this topic by using the online code convertor tool

    Please refer to the attached VB project.

    I hope this helps.

    Kind regards,
    Peter
    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

  8. Patrick
    Patrick avatar
    7 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2013 Link to this post

    I have a similar challenge. I'm using the RadRibbonForm as a MDI parent. Using RadDoc, I'm using a list in a tool window to open a form in a document window; click on another record in the list tool window, another document window will open containing another instance of a form.  I'd like to have buttons like Save, Cancel, Close, etc. in the parent ribbon form that trigger events in the active child form in the active document window.  Being new to both .net and to the Telerik controls, I welcome your guidance. But I'm guessing I have to somehow dynamically detach the buttons events from one form and attach them to handlers in the active form.  But how?  Thanks in advance.
    Patrick
  9. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 31 Jul 2013 Link to this post

    Hello Patrick,

    Thank you for writing.

    I am not sure that I fully understand your scenario but you should get the current document using the RadDock's ActiveWindow property. Using this property and RadDock's ActiveWindowChanged event you will able to manipulate the content and events in the current document. For more information about our RadDock please refer to these help articles.
    Please, note that the RibbonBar UI is not designed for MDI scenarios according to the Microsoft Office User Interface Design Guidelines and you can face scenarios which are not supported.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready