This question is locked. New answers and comments are not allowed.
Hello,
This is my DataTemplate:-
Why can't I see the content in RadRichTextbox? The ArticleContent is a field in my entity. Sample string returned from the database for this field is :-
<t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" version="1.0" DefaultPageLayoutSettings="800,1140" LayoutMode="Flow" PageViewMargin="0,0" ParagraphDefaultSpacingAfter="0" SectionDefaultPageMargin="6,6,6,6">
<t:Section>
<t:Paragraph Background="#00FFFFFF" SpacingAfter="0">
<t:Span Text="test test test....hello world is this working????" />
</t:Paragraph>
</t:Section>
</t:RadDocument>
Can you find any bug in the code? I can see the Edit and Remove hyperlinkbutton in listbox but can't see radrichtextbox's content. Any help?
This is my DataTemplate:-
<DataTemplate x:Key="ItemTemplateArticles"> <Grid Background="White"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="Auto" MinHeight="26"/> </Grid.RowDefinitions> <telerik:RadRichTextBox x:Name="richArticle" Width="840" Height="100"> <telerik:RadRichTextBox.Resources> <telerikXaml:XamlDataProvider x:Key="xamlDataProvider" RichTextBox="{Binding ElementName=richArticle}" Xaml="{Binding ArticleContent}" /> </telerik:RadRichTextBox.Resources> </telerik:RadRichTextBox> <StackPanel Orientation="Horizontal" Grid.Row="1" d:LayoutOverrides="Height" Margin="0,3" HorizontalAlignment="Right"> <HyperlinkButton x:Name="hypEdit" Content="Edit" Margin="0" d:LayoutOverrides="Width"/> <HyperlinkButton x:Name="hypRemove" Content="Remove" Margin="3,0,0,0"/> </StackPanel> </Grid> </DataTemplate>Why can't I see the content in RadRichTextbox? The ArticleContent is a field in my entity. Sample string returned from the database for this field is :-
<t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" version="1.0" DefaultPageLayoutSettings="800,1140" LayoutMode="Flow" PageViewMargin="0,0" ParagraphDefaultSpacingAfter="0" SectionDefaultPageMargin="6,6,6,6">
<t:Section>
<t:Paragraph Background="#00FFFFFF" SpacingAfter="0">
<t:Span Text="test test test....hello world is this working????" />
</t:Paragraph>
</t:Section>
</t:RadDocument>
Can you find any bug in the code? I can see the Edit and Remove hyperlinkbutton in listbox but can't see radrichtextbox's content. Any help?
