RadComboBox in CellEditTemplate

4 posts, 0 answers
  1. Vyacheslav
    Vyacheslav avatar
    4 posts
    Member since:
    Sep 2013

    Posted 11 Aug 2014 Link to this post

    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>
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 Aug 2014 Link to this post

    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.
     
  3. Vyacheslav
    Vyacheslav avatar
    4 posts
    Member since:
    Sep 2013

    Posted 11 Aug 2014 Link to this post

    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}" />
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 Aug 2014 Link to this post

    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.
     
Back to Top