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

[Solved] RadRichTextBox in RadGridView?

1 Answer 180 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.
Todd
Top achievements
Rank 1
Todd asked on 25 Aug 2010, 08:09 PM

Is it possible to use the RadRichTextBox as a cell within my RadGridView?  Specifically, I have a RadGridView with several columns, and I want the last column to be the RadRichTextBox.  Currently, my Silverlight application has a simple textbox as the last column in the grid.  My customer has asked that I add rich text formatting to the last cell in each row, so I figured I would use the RadRichTextBox.

Here is the code I have for my current textbox in the last column of the RadGridView:

<telerik:GridViewDataColumn Header="Notes" DataMemberBinding="{Binding notes, Mode=TwoWay, Converter={StaticResource DescriptionConverter}}">
    <telerik:GridViewDataColumn.CellEditTemplate>
            <DataTemplate>
            <TextBox AcceptsReturn="True" TextWrapping="Wrap" Text="{Binding notes, Mode=TwoWay}" 
                Height="50" Width="200" VerticalContentAlignment="Top" 
                        HorizontalContentAlignment="Left" VerticalScrollBarVisibility="Auto"/>
                </DataTemplate>
        </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

If you know how to do this, please step me through the process, post a link to an example of the RadRichTextBox being used in a RadGridView, or post the code for how this is done.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Aug 2010, 09:19 AM
Hello Todd,

You may take a look at this blog post, where you will find detailed information as well as a sample project illustrating how to create your own custom column.
I hope that helps.

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Todd
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or