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

Problem using RadGridView inside a cell as Editing Template

2 Answers 238 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ariel Gonzalez
Top achievements
Rank 1
Ariel Gonzalez asked on 20 Apr 2010, 09:31 PM
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

2 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 26 Apr 2010, 11:15 AM
Hi Ariel Gonzalez,

I've managed to simulate the reported issue. Thank you for pointing this out. I've added 1500 points to your client account. We'll try to fix the problem with next latest internal build (next Friday). Sorry for the inconvenience caused.

Kind regards,
Nedyalko Nikolov
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
Ariel Gonzalez
Top achievements
Rank 1
answered on 26 Apr 2010, 02:12 PM
Hi Nedyalko Nikolov

Thanks, Looking forward to the next internal build. 

As a workaround I handled the LostFocus event in the RadGridView and there I set e.Handled = true, for now that's working for me.

Thanks again

Ariel Gonzalez
Tags
GridView
Asked by
Ariel Gonzalez
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Ariel Gonzalez
Top achievements
Rank 1
Share this question
or