kendo-ui-core icon indicating copy to clipboard operation
kendo-ui-core copied to clipboard

The string "null" is converted to null by the datasource parser

Open gyankov opened this issue 1 year ago • 3 comments

Bug report

Currently if the string "null" is processed by the dataSource, it parses it to null. Refer to the following dojo for better understanding:

  • https://dojo.telerik.com/@sspasova/uCigObex

Reproduction of the problem

Defina a dataSource with a model that has a string field. Pass data that has "null" as a value.

Current behavior

The string "null" is converted to null.

Expected/desired behavior

The value should not be converted.

Environment

  • Kendo UI version: 2023.3.1114
  • jQuery version: 3.4.1
  • Browser: [all]

gyankov avatar Apr 18 '23 08:04 gyankov

Increased priority due to a report in TicketID: 1632165

mihaela-lukanova avatar Nov 27 '23 11:11 mihaela-lukanova

I am experiencing this issue with Dotnet core as well. A user with the last name of Null has their last name not appear in the grid due to this issue.

I am running the latest version 2024.1.319

christopher-mckain avatar Apr 22 '24 15:04 christopher-mckain

Hi @christopher-mckain, thank you for your report. Both .Net and jQuery components share the same client-side dataSource component, thus the consistent behavior. I am increasing the priority of this issue.

gyankov avatar May 09 '24 06:05 gyankov