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

RadGridview with RadRichtextbox column

3 Answers 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Daniel Wood
Top achievements
Rank 1
Daniel Wood asked on 27 Apr 2011, 05:21 PM
Hi All,
I have got a grid with a Richtextbox as a column which works well, Howver I need to change the dictionary to be a UK. Elsewhere in the app I use the adddictionary method which works fine,
I have tried to get the richtextbox from the grid so I can use the same method. But can not seem to get it.
Is there a way to change the dictionary in the richtextbox
Cheers
Daniel

3 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 27 Apr 2011, 08:56 PM
Hi Daniel Wood,

 I need some more details before I can help you. Could you please tell me if you are using a custom column implementation or are you using CellTemplates?

Regards,
Yavor Georgiev
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
0
Daniel Wood
Top achievements
Rank 1
answered on 03 May 2011, 10:30 AM
 Hi Yavor
Below is the code I am using
Cheers
Daniel

 
<telerik:GridViewDataColumn x:Name="RTColumn" Header="Agree personal objectives" DataMemberBinding="{Binding PRR_Objective, Mode=TwoWay}" Width="3*" EditTriggers="CellClick" >
                              <telerik:GridViewDataColumn.CellTemplate>
                                  <DataTemplate>
                                      <telerik:RadRichTextBox x:Name="readOnlyRichTextBox" Margin="2" IsReadOnly="True" IsHitTestVisible="False">
                                          <telerik:RadRichTextBox.Resources>
                                              <telerikDocumentsText:TxtDataProvider x:Key="txtDataProvider"  RichTextBox="{Binding ElementName=readOnlyRichTextBox}" Text="{Binding PRR_Objective, Mode=TwoWay}"  />
                                          </telerik:RadRichTextBox.Resources>
                                      </telerik:RadRichTextBox>
                                  </DataTemplate>
                              </telerik:GridViewDataColumn.CellTemplate>
                              <telerik:GridViewDataColumn.CellEditTemplate>
                                  <DataTemplate>
                                          <telerik:RadRichTextBox x:Name="rtbGrid"  IsSelectionMiniToolBarEnabled="False">
                                              <telerik:RadRichTextBox.Resources>
                                                  <telerikDocumentsText:TxtDataProvider x:Key="txtDataProvider"   RichTextBox="{Binding ElementName=rtbGrid}" Text="{Binding PRR_Objective, Mode=TwoWay}"  />
                                              </telerik:RadRichTextBox.Resources>
                                          </telerik:RadRichTextBox>
                                  </DataTemplate>
                              </telerik:GridViewDataColumn.CellEditTemplate>
                          </telerik:GridViewDataColumn>
0
Vlad
Telerik team
answered on 03 May 2011, 12:17 PM
Hi,

 You can use Loaded event of the editor itself and set desired properties. 

All the best,
Vlad
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
Daniel Wood
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Daniel Wood
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or