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

Table content Alignment problem in RadRichTextBox

0 Answers 122 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JanwalkarPooja
Top achievements
Rank 2
JanwalkarPooja asked on 05 Jul 2013, 05:19 AM
Hi Team,

 I am facing one problem that binding data when it's  loaded inside RadRichTextBox control not been  properly displayed.
kindly look into this code,i have given all the properties related alignment but still its not working.

<telerik:RadGridView.RowDetailsTemplate>
                                                    <DataTemplate>
                                                        <Grid VerticalAlignment="Center">
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition  Height="*"/>
                                                            </Grid.RowDefinitions>
                                                            <Grid.ColumnDefinitions>
                                                               <ColumnDefinition Width="*" />
                                                            </Grid.ColumnDefinitions>
<telerik:RadRichTextBox x:Name="richTextBox" ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                                                    Grid.Row="0" Width="980" MaxWidth="980"
                                                                                    Grid.Column="0" Padding="10,0,0,0"
                                                                                    Height="100" VerticalContentAlignment="Stretch" VerticalAlignment="Center" HorizontalContentAlignment="Center"
                                                                                    IsReadOnly="True" HorizontalAlignment="Right"
                                                                                    IsSpellCheckingEnabled="False"                                                                                                                                                                        
                                                                                    IsSelectionMiniToolBarEnabled="False"                                                                                                                                                        
                                                                                    IsContextMenuEnabled="False"
                                                                                    IsSelectionEnabled="False"
                                                                                    />
                                                            <telerikhtml:HtmlDataProvider x:Name="HtmlDataProvider"
                                                                                          Html="{Binding EmailBody}"
                                                                                          RichTextBox="{Binding ElementName=richTextBox}" />
</Grid>
                                                    </DataTemplate>
                                                </telerik:RadGridView.RowDetailsTemplate>
Also,PFA of image,in that one particular row is maximize RadRichTextBox comes up.In that Content of table (header name & value) is shifted to the left.Its not properly aligned with Table structure.

Please provide the solution.
Looking forward your reply.

Regards,
Pooja
Tags
RichTextBox
Asked by
JanwalkarPooja
Top achievements
Rank 2
Share this question
or