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

Put Column in Editmode from initialise.

3 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kieron
Top achievements
Rank 1
Kieron asked on 12 Dec 2016, 10:22 AM

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.

 

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Dec 2016, 02:17 PM
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.
0
Kieron
Top achievements
Rank 1
answered on 14 Dec 2016, 03:52 PM

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>

 

0
Stefan
Telerik team
answered on 19 Dec 2016, 08:50 AM
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.
Tags
GridView
Asked by
Kieron
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Kieron
Top achievements
Rank 1
Share this question
or