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

[Solved] Richtextbox can not be display in GridView's rowdetail?

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jiang
Top achievements
Rank 1
jiang asked on 20 Feb 2011, 06:29 AM
My code is :
<telerik:RadGridView.RowDetailsTemplate>
    <DataTemplate>
        <StackPanel Orientation="Vertical">
            <TextBlock Text="NewsContent"/>
            <RichTextBox x:Name="_NewsContent">
                <RichTextBox.Resources>
                    <telerikhtml:HtmlDataProvider x:Key="_HtmlDataProvider" RichTextBox="{Binding ElementName=_NewsContent}" Html="{Binding NewsContent}"/>
                </RichTextBox.Resources>
            </RichTextBox>
        </StackPanel>
    </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>
The richtextbox's content can not be display in GridView's rowdetail!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 21 Feb 2011, 04:04 PM
Hi jiang,

May you take a look at this article and verify whether is simulates your scenario as well ? Furthermore, may you try to bind the RichTextBox to a property exposed in your ViewModel for example and check if it is visible ? 

All the best,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
jiang
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or