Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > One Ribbon, Multiple child forms or panels?

Not answered One Ribbon, Multiple child forms or panels?

Feed from this thread
  • Keith avatar

    Posted on Nov 12, 2011 (permalink)

    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.

    Reply

  • Peter Peter admin's avatar

    Posted on Nov 16, 2011 (permalink)

    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.

    Reply

  • Thiru avatar

    Posted on Jan 11, 2012 (permalink)

    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.

    Reply

  • Peter Peter admin's avatar

    Posted on Jan 16, 2012 (permalink)

    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).

    Attached files

    Reply

  • Thiru avatar

    Posted on Jan 17, 2012 (permalink)

    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.

    Reply

  • Peter Peter admin's avatar

    Posted on Jan 21, 2012 (permalink)

    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).

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > One Ribbon, Multiple child forms or panels?
Related resources for "One Ribbon, Multiple child forms or panels?"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]