davida
20 Dec 2006, 9:41 AM
I am using an editable grid with JSON data that returns quite a few null values for fields (floating point numbers). When I cursor over a blank cell, its triggering the cellUpdated event because the NumberEditor is returning '' rather than null so it looks like the cell value has changed (even though the user didn't type anything in it).
Is there a way to allow the cells/editors to handle null values directly? I don't really want to translate nulls to empty strings when loading the JSON data as null is valid in my world (database value) and I'd like people to be able to clear out a field and then do a post to the server to set it to null. It would be easier if the new value for a cell after clearing it is null rather than '' since an empty string really doesn't make sense for a float.
Thanks in advance.
Is there a way to allow the cells/editors to handle null values directly? I don't really want to translate nulls to empty strings when loading the JSON data as null is valid in my world (database value) and I'd like people to be able to clear out a field and then do a post to the server to set it to null. It would be easier if the new value for a cell after clearing it is null rather than '' since an empty string really doesn't make sense for a float.
Thanks in advance.