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

RadGridView without edit mode?

1 Answer 323 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 29 Mar 2017, 04:10 PM

Is it possible to use RadGridView without edit mode? Or even just to reduce the number of actions it takes to perform an edit?

 

The current process to change a value in a bound object is:

1) Double click a cell. This causes the cell to enter edit mode.

2) Change the value.

3) Press Enter or click out of the grid to commit the change.

 

This is a lot of actions just to edit a value. I would much rather:

1) Click once in a cell.

2) Change the value (committing on each key stroke).

 

Is this possible? We would prefer an MVVM approach too, if at all possible.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Apr 2017, 01:03 PM
Hi Tim,

In order to get the cell in edit mode immediately after the user clicks in it, you can set the EditTriggers property to CellClick. This is discussed in the Updating an Entry topic. Can you please check it out?

As to updating the property value on each key stroke, you can utilize the TextBoxBehavior mechanism. I have prepared a sample application to demonstrate the approach for your convenience.

I hope it helps. If you need further assistance or have any concerns, feel free to update me.

Regards,
Stefan X1
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Tim
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or