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

Support For Multiple Rich Text Boxes with RadRibbon

1 Answer 49 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 04 May 2011, 10:00 AM
hey guys,

not sure if this belongs on this forum OR the RadRibbon forum, but its the RichTextBox that i'm most interested in, basically the problem we have, is i have a list of 0 - N controls we call these ActivityControls, each Activity has a TWO RichTextBox controls,

So I have a Ribbon control to control my list of controls, with a Contextual Tab for the Text and Table Controls (taken from the telerik demo)

Is it possible for this singular set of controls to control potentially hundreds of RichText Controls?

If you have a demo of this functionality that'd be brilliant!

Cheers
Regards
Kevin.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 06 May 2011, 12:45 PM
Hi kevin,

RadRichTextBoxRibbonUI can control only one RadRichTextBox at a time, but you can change the control that the commands are performed on by changing the DataContext of the RibbonUI at all times. Here is the sample code:

this.radRichTextBoxRibbonUI.DataContext = this.radRichTextBox1.Commands;

You can set the DataContext on GotFocus of the rich text box for example. The number of RadRichTextBoxes is not limited. You can find attached a demo for 2 RichTextBoxes.

Kind regards,
Iva
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
Tags
RichTextBox
Asked by
Kevin
Top achievements
Rank 2
Answers by
Iva Toteva
Telerik team
Share this question
or