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

[Solved] Richtextbox inside gridview

2 Answers 159 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.
Kyle Watson
Top achievements
Rank 1
Kyle Watson asked on 25 Nov 2010, 12:57 AM
I'm trying to use a richtextbox control inside a gridview column. I cannot get anything to databind to the richtextbox control, it is always empty. Can you advise? Thank you.

<

 

 

telerikGrid:GridViewColumn Header="Description">  

 

<telerikGrid:GridViewColumn.CellTemplate

 

<DataTemplate

 

<telerik:RadRichTextBox x:Name="MessageRichTextBox" Height="150" Width="350" HorizontalAlignment="Left" BorderBrush="Black" BorderThickness="1"> 

 

<telerik:RadRichTextBox.Resources>

 

 

 

<documentsXaml:XamlDataProvider x:Key="HtmlProvider" RichTextBox="{Binding ElementName=MessageRichTextBox}" Xaml="{Binding Description, Mode=TwoWay}" >

 

 

 

</documentsXaml:XamlDataProvider>

 

 

 

</telerik:RadRichTextBox.Resources>

 

 

 

</telerik:RadRichTextBox>

 

 

 

</DataTemplate>

 

 

 

</telerikGrid:GridViewColumn.CellTemplate>

 

 

 

</telerikGrid:GridViewColumn>

 

 



2 Answers, 1 is accepted

Sort by
0
Kyle Watson
Top achievements
Rank 1
answered on 25 Nov 2010, 01:27 AM
I needed to set the binding mode to TwoWay binding. I apologize.
0
Maya
Telerik team
answered on 25 Nov 2010, 06:21 PM
Hello Kyle Watson,

You may take a look at this and this forum threads for a reference.  

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Kyle Watson
Top achievements
Rank 1
Answers by
Kyle Watson
Top achievements
Rank 1
Maya
Telerik team
Share this question
or