Put Column in Editmode from initialise.

4 posts, 0 answers
  1. Kieron
    Kieron avatar
    9 posts
    Member since:
    Jan 2016

    Posted 12 Dec 2016 Link to this post

    Hi,

    Is it possible for a DataViewComboBoxColumn to display its Edit Display (what you get if you double click in the cell) - so that the combobox is showing all the time.  For me, I don't feel like its clear enough to the end-user that this column is editable, and asking them to click once / double click in the cell just to display the combobox is too much.

    Same goes with the CheckboxColumn - even when I set the IsReadOnly mode to False on this column - the checkbox appears to look the same as if I set it to true.  The user has to go into Edit mode by clicking to determine this for themselves and I don't really want any click behaviour - seems bizarre to me that this is the default behaviour for these type of columns.

     

     

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 14 Dec 2016 Link to this post

    Hello Kieron,

    In order the GridViewCheckBoxColumn to enter edit mode only with one click, please try the approach demonstrated in the Number of clicks in GridViewCheckBoxColumn topic. The same approach applies to GridViewComboBoxColumn as well. You can simply set its EditTriggers property to CellClick. Is this the behavior of the two columns you are aiming at?

    Regards,
    Stefan X1
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Kieron
    Kieron avatar
    9 posts
    Member since:
    Jan 2016

    Posted 14 Dec 2016 in reply to Stefan Link to this post

    Hi Stefan,

    Thanks for the link - that's sorted me out for the Checkbox column (by leveraging the CellTemplate), but I've tried adding EditTriggers="CellClick" to my combobox and also adding the EditorStyle property and it still requires 3 clicks to get into the edit mode.

    This is my code:

    <telerik:GridViewComboBoxColumn Header="Role" IsVisible="{Binding ElementName=mainScheduleView, Path=DataContext.HasOperatorRoles}"
    ItemsSource="{Binding ElementName=mainScheduleView, Path=DataContext.GetOperatorRoles}"
    DataMemberBinding="{Binding RoleID}" SelectedValueMemberPath="RoleID" DisplayMemberPath="RoleName"
    Width="150" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}"
    EditTriggers="CellClick">
      <telerik:GridViewComboBoxColumn.EditorStyle>
        <Style TargetType="telerik:RadComboBox">
          <Setter Property="OpenDropDownOnFocus" Value="True"/>
        </Style>
        </telerik:GridViewComboBoxColumn.EditorStyle>
    </telerik:GridViewComboBoxColumn>

     

  4. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 19 Dec 2016 Link to this post

    Hello Kieron,

    I am glad that the referred article helped for GridViewCheckBoxColumn.

    As to the behavior you are experiencing with GridViewComboBoxColumn, I am not able to replicate it. The column is entering edit mode with one click one my end. I have used the ComboBoxColumn SDK Example for testing. You can find it attached to my post. Can you please check it out? Am I missing something?

    Regards,
    Stefan X1
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top