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

Null value when empty text in editor in GridViewDecimalColumn

1 Answer 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Amand
Top achievements
Rank 1
Amand asked on 23 Dec 2014, 02:53 PM
I use a GridViewDecimalColumn where the value can be a double?. If the initial value is null, the cell is empty. When the user then enters a value, it is set. However, after this, if the user tries to get back to an empty cell, he tries to clear the value in the editor, but in this case, the value is always set back to 0. How to change this behaviour ?

Thanks,

Amand.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Dec 2014, 01:21 PM
Hello Amand,

Thank you for writing.

I have tested this case and it seems that once the editor is cleared, the cell Value remains null. Please refer to the attached video.

Still, if I have missed your case you can use the CellEndEdit event, where you can change the cell value, after the user finishes the edit process.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Amand
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or