Hello everyone,
We have a Kendo Grid for user registration with an input field for first name, last name, etc.. We've encountered a problem with our users whose last name is "Null". When we attempt to add a new record to the grid, using a kendo popup editor, and enter null in the last name field it will automatically clear it. We are then able to retype it and the value will be retained in the input box while we continue editing. However, after the record is saved the kendo grid will once again clear the field.
Is there anyway we can work around this issue? Thanks for reading.
Hi Colin,
Thank you for the details provided.
As all developers in the world, I assume that you maybe know what is the reason causing this issue. When used as a value, null is not a memory location. Only pointers hold memory locations. Without a null character, a string would not correctly terminate, which would cause problems:
In order to achieve the desired behavior, I would recommend advising your clients to use a different name, or to interpolate their name with a symbol, a dot for example("Null.").
The pointed issue is not part of the Kendo UI scope. The approach above(with the dot) will work with the DataBase as well.
I hope this information helps.
Kind Regards,
Anton Mironov