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

checkbox value false on edited row

2 Answers 12 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gone2TheDogs
Top achievements
Rank 1
Veteran
Gone2TheDogs asked on 07 Jun 2017, 02:23 PM

I have a grid with a checkbox column. If a user marks the checkbox and then clicks on the "Save" button, I'm pulling the value of the checkbox, but it returns FALSE. It seems like the row is not being committed even when I have left the grid. What is trick for this?

(see screenshot)

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Jun 2017, 12:34 PM
Hello Bob, 

Thank you for writing.  

The GridViewCheckBoxColumn.EditMode property controls when the value of the editor will be submitted to the cell. By default, the current behavior is kept (OnValidate) and the value will be submitted only when the current cell changes or the grid looses focus. The new value (OnValueChange) will submit the value immediately after the editor value changes. Set the EditMode property to OnValueChange and the new values will be committed immediately.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
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
Gone2TheDogs
Top achievements
Rank 1
Veteran
answered on 09 Jun 2017, 10:14 AM

Great explanation. Thank you, Dess!

 

 

Tags
GridView
Asked by
Gone2TheDogs
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Gone2TheDogs
Top achievements
Rank 1
Veteran
Share this question
or