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

RadComboBox in CellEditTemplate

3 Answers 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vyacheslav
Top achievements
Rank 1
Vyacheslav asked on 11 Aug 2014, 06:46 AM
When I try to select RadComboBox off mode Editable. Is it possible to solve this problem?
Example

CellEditTemplateSelector:

        <DataTemplate x:Key="EditDataTemplate" DataType="viewModels:ModelView">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <telerik:RadNumericUpDown NumberDecimalDigits="0"
                                          Minimum="0"
                                          Maximum="10080"
                                          BorderBrush="{x:Null}"
                                          BorderThickness="0"
                                          ShowButtons="False"
                                          IsInteger="True">
                    <telerik:RadNumericUpDown.Value>
                        <MultiBinding Converter="{StaticResource NotificationModelsTwoWayConverter}" Mode="TwoWay">
                            <Binding Path="DataContext.SelectedItem" Mode="OneWay"
                                     RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=UserControl}" />
                            <Binding Path="DataContext" Mode="OneWay" RelativeSource="{RelativeSource Self}" />
                            <Binding Path="Column.Name" Mode="OneWay"
                                     RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=telerik:GridViewCell}" />
                        </MultiBinding>
                    </telerik:RadNumericUpDown.Value>
                </telerik:RadNumericUpDown>
                <telerik:RadComboBox Grid.Column="1" SelectedIndex="0">
                    <telerik:RadComboBoxItem Content="min" Tag="min"/>
                    <telerik:RadComboBoxItem Content="hour" Tag="hour"/>
                    <telerik:RadComboBoxItem Content="day" Tag="day"/>
                </telerik:RadComboBox>
            </Grid>
        </DataTemplate>

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 Aug 2014, 11:03 AM
Hi,

I am not sure I understand what the problem is: "When I try to select RadComboBox off mode Editable". Would you please clarify your question? How have you defined your CellEditTemplateSelector?

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Vyacheslav
Top achievements
Rank 1
answered on 11 Aug 2014, 01:00 PM
I wanted to say, when I try to change the RadComboBox, GridViewDataColumn is included in CellTemplate. For this reason, I can not change the RadComboBox.

<telerik:GridViewDataColumn TabStopMode="Skip"
                                                            CellTemplate="{StaticResource NotificationModelsViewDataTemplate}"
                                                            CellEditTemplateSelector="{StaticResource NotificationModelTemplateSelector}" />
0
Dimitrina
Telerik team
answered on 11 Aug 2014, 02:50 PM
Hello,

Have you eventually set an editable CellTemplate for the column? If so, then you may not enter edit mode easily.
May I ask you to isolate the issue in a demo solution illustrating it and send it to me? You can take a look at this blog post for a reference on how to isolate an issue. 

You can open a new support thread and attach the project there.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Vyacheslav
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Vyacheslav
Top achievements
Rank 1
Share this question
or