This is a migrated thread and some comments may be shown as answers.

Using RibbonBar with MDI Parent Child Relation

1 Answer 82 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 2
James asked on 29 Jan 2009, 03:30 PM
I have done searches and cannot find anything on this.  I have a parent/child application, each child has it's own stuff to do, esentially what I am trying to do is. when you click a tab, the child form loads into the parent and inserts it's "ribbon" of items into the parent ribbon.

If that's not possible, how would I then go about issuing commands in the child from the parent ribbon.

Please, this is driving me crazy and I know it shouldn't be this hard.

Thank you in advance

BTW: I am trying this with Q3 2008 General Release

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Jan 2009, 09:29 AM
Hello James,

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 (see the attached screenshot). In addition, it can be very easy to add a Chunk for each child form, here is sample code about adding Chunks programmatically:

TabItem tabItem1 = new TabItem(); 
tabItem1="Form1"
RadRibbonBarCommandTab radRibbonBarCommandTab1 = new RadRibbonBarCommandTab(); 
radRibbonBarCommandTab1.Tab = tabItem1; 
RadRibbonBarChunk radRibbonBarChunk1 = new RadRibbonBarChunk();  
radRibbonBarCommandTab1.Items.Add(radRibbonBarChunk1);     
this.radRibbonBar1.CommandTabs.Add(radRibbonBarCommandTab1); 

Also, please refer to our example named "RadRibbonBar->MDI layout" in our Quick Start Framework (QSF) (TelerikExample.exe in the Telerik installation folder).

Hope this helps. Do not hesitate to write me back if you have more questions.

Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
RibbonBar
Asked by
James
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or