This question is locked. New answers and comments are not allowed.
Hi,
I would like to make a editTemplateSelector for GridViewDataColumn, and I have tried doing something as shown below:
The problem is when a certain cell is not editable, I can still see the text of TextBlock shifted. Is there any better approach to set the selector?
Cheers,
VH
I would like to make a editTemplateSelector for GridViewDataColumn, and I have tried doing something as shown below:
| <telerikGridView:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <localControls:GridViewNameEditTemplateSelector Content="{Binding}"> |
| <localControls:GridViewNameEditTemplateSelector.EditTemplate> |
| <DataTemplate> |
| <TextBox Text="{Binding Name, Mode=TwoWay}"/> |
| </DataTemplate> |
| </localControls:GridViewNameEditTemplateSelector.EditTemplate> |
| <localControls:GridViewNameEditTemplateSelector.NonEditableTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding Name}" HorizontalAlignment="Center"/> |
| </DataTemplate> |
| </localControls:GridViewNameEditTemplateSelector.NonEditableTemplate> |
| </localControls:GridViewNameEditTemplateSelector> |
| </DataTemplate> |
| </telerikGridView:GridViewDataColumn.CellEditTemplate> |
The problem is when a certain cell is not editable, I can still see the text of TextBlock shifted. Is there any better approach to set the selector?
Cheers,
VH