Kendo Grid input field - allowing string value "null"

0 Answers 340 Views
Grid
Colin
Top achievements
Rank 1
Colin asked on 06 Aug 2021, 06:06 PM

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.

Anton Mironov
Telerik team
commented on 11 Aug 2021, 11:56 AM

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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Colin
Top achievements
Rank 1
Share this question
or