I want to do a validation of the values entered before ending the edit (i.e. if nothing was entered in 1 column or an item wasn't selected from a combobox then show a message and cancel the edit).
Been trawling the forums and can't find the right advice...
3 Answers, 1 is accepted
0
Dimitar
Telerik team
answered on 22 Dec 2017, 10:54 AM
Hello Roger,
You can use the CellValidating event. For example:
unfortunately there are issues with this method as there are conflicts between the columns (I have 3) when editing and moving off the column.
This table is included in a larger information collecting form.
I think it would be better to have a separate procedure to check the columns before saving the whole form and then throw a message box if any remain empty.
Thanks anyway.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Jan 2018, 10:46 AM
Hello, Roger,
Thank you for writing back.
In the CellValidatingEventArgs you have access to the column. Hence, you can check not only the value but the column as well. Here is a sample code snippet: