Hi
I have a Column which generates its Cell Template and its Cell Edit Template using template selectors in code. I need this because the information in that particular column changes according the values selected in the other columns. One of the template generated from my Edit Template Selector class is a RadGridView.
I have a big PROBLEM. When I click that particular column so its enter in edit mode and get the RadGridView template from the template selector class it shows the RadGridView inside the cell perfectly but as soon as I click in any of the internal RadGridView rows to select them, it lost focus and the cell enter in its regular mode.
Any ideas who to overcome this, so I can interact with the internal generated RadGridView.
Some of the code;
Definition of the Column with its template selectors
<telerik:GridViewDataColumn Header="Criteria" CellEditTemplateSelector="{StaticResource CellEditTemplateSelector}" CellTemplateSelector="{StaticResource CellTemplateSelector}"/> |
The piece of code that returns the RadGridView in the CellEditTemplateSelector Class:
return (container as GridViewCell).FindResource("RangeGridSelector") as DataTemplate; |
The DataTemplate Resource with the RadGridView definition
<DataTemplate x:Key="RangeGridSelector"> |
<telerik:RadGridView AutoGenerateColumns="False" |
ShowGroupPanel="False" |
CanUserReorderColumns="False" |
ItemsSource="{Binding Path=Criterias}"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewSelectColumn /> |
<telerik:GridViewDataColumn Header="Criteria" DataMemberBinding="{Binding}"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</DataTemplate> |
PD: Forgot to mention that I am using the latest internal build of WPF RadControls 2010.1.0416