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

Edit Frustration

4 Answers 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Iron
Marcello asked on 27 Nov 2017, 02:23 PM

RadGridView is a really good Grid but the edit experience is terrible...

I try to explain my problems with a check box column.

1) I click it, nothing happens but perhaps now the cell is selected, the style is a little bit changed

2) I click a second time, nothing. But perhaps now the style of checkbox is changed, now it is enabled

3) I click a third time, good now the check is box checked but the Item source value is not change, we are waiting for a magical "CellEditedEndEvent", why???

4) I press the enter key, now the value is really changed.

Now suppose that a user must check 100/200 items/day, it is the work of this user, why we are asking to user "please click 500/1000 time per days instead please..."

marc.

4 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 29 Nov 2017, 02:00 PM
Hello Marcello,

I'm sorry to hear that you're displeased with the GridViewCheckBoxColumn's default editing behavior. Could you please have a look at the following article which demonstrates two approaches on how to change the number of times the checkboxes need to be clicked to update the underlying value?

Do let me know whether you find this resource helpful. If I can be of any further assistance, don't hesitate to get back to me.

Regards,
Dilyan Traykov
Progress Telerik
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.
0
Marcello
Top achievements
Rank 1
Iron
answered on 29 Nov 2017, 02:28 PM

Hello Dilyan,

Thanks very much, this can solve a big part of my problems (I'm curious, why this is not the default??)

But the point 4 is not solved, how to force the update of ItemSource happens on same single click?

marc.

0
Dilyan Traykov
Telerik team
answered on 30 Nov 2017, 11:19 AM
Hello Marcello,

This is the column's initial design and the AutoSelectOnEdit and EditTriggers properties were introduced later on in the life of the RadGridView control. Modifying this behavior would have proven to be a breaking change for some of our clients and that is why the default values stayed as is.

The fourth point of your requirement can not be achieved with the first approach from the article as it bypasses RadGridView's validation mechanism. If you find suitable, you can use the second approach and define a normal GridViewDataColumn with a custom CellTemplate, containing a CheckBox bound to the underlying property.

I hope this clarifies things for you. If you have any other questions, don't hesitate to ask.

Regards,
Dilyan Traykov
Progress Telerik
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.
0
Marcello
Top achievements
Rank 1
Iron
answered on 30 Nov 2017, 11:22 AM

Perfect Dilyan, thanks.

marc.

Tags
GridView
Asked by
Marcello
Top achievements
Rank 1
Iron
Answers by
Dilyan Traykov
Telerik team
Marcello
Top achievements
Rank 1
Iron
Share this question
or