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

MaxWidth and MinWidth for RadrichTextBox

3 Answers 155 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Bob asked on 30 Sep 2011, 06:59 PM
Greetings-
I seem to be having a problem with the RadRichTextBox with regard to the MaxWidth and MinWidth properties. We have created a re-usable control callled HTMLEditor.xaml that has the RadRichTextBox contained in a grid. See the code below

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition MinWidth="500" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0" Grid.Column="0" MinWidth="500" HorizontalAlignment="Stretch">
            <telerik:RadRichTextBox LayoutMode="Flow" x:Name="editor" AllowDrop="True" Drop="editor_Drop" ShowComments="False" MinHeight="50" MaxHeight="100" BorderBrush="#FFADADAD"
                                   MinWidth="500" BorderThickness="1" IsSelectionMiniToolBarEnabled="False" IsContextMenuEnabled="True" IsInHeaderFooterEditMode="False">
            </telerik:RadRichTextBox>
        </Grid>
    </Grid>

This control gets re-used in a few instances and has varying MaxWidth and MinWidth properties in 3 different cases. I seem to having a problem with each instance of the RadRichTextBox control...they do not re-size to the resolution.

<GroupBox Margin="5" Padding="5" MinWidth="614" Header="Stem and/or Stimulus" Foreground="#FF000000">
           <common:HtmlEditor Name="htmlStem" GotFocus="htmlEditor_GotFocus" MinHeight="100" Margin="0" Padding="0" />
           </GroupBox>

Can you provide some help with this?
Thanks,
Strasz

3 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 30 Sep 2011, 07:01 PM
I should also add that I have taken out the MaxWidth properties as they were not working at all and caused the page to need a scroll bar
strasz
0
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 05 Oct 2011, 04:57 PM
does anyone from telerik plan on answering my question sometime soon?
thanks
0
Iva Toteva
Telerik team
answered on 05 Oct 2011, 05:39 PM
Hi Bob,

I am afraid I was not able to identify a problem with the MaxWidth and MinWidth of the control.
I used the code from your snippets to create a demo. Could you take a look at it and get back to us with more information on what you are considering wrong in the behavior of the control?

Regards,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Iva Toteva
Telerik team
Share this question
or