Dear Syncfusion team,
I would strongly recommend to change the grid filter standard behavior to better handle such a situation (happens probably quite often). If no type is specified on a column and the first entry is null, default types (set for the whole grid, the installation or even in general) could be used.
Would make life of a programmer using this component much easier ...... error messages like this are very difficult to trace and decrypt....
Regards
Julius
Hi Julius,
Greetings from Syncfusion support.
By
default, in EJ2 Grid, the actions like filter, sort, etc. will be performed
based on the type of the column. If the type of the column is not set, grid
will automatically assign the type based on the value in the first row of the
column. If the value of the first row of the column is null/undefined, the
column type will not be defined. So, if null or undefined value is present in
the initial row of a column and column type is not set for that column, then
the type will be set as ‘null’ which causes problem.
As you have mentioned, if we set the default type(e.g.,
string) for the columns when no type is specified on a column and the first-row
data is null, then the grid will consider this as a string column and perform
all the actions considering this as a string column. This may cause the grid to
show improper results when performing the actions like filtering, sorting etc.
This is the reason we have not set the default value for the column type.
Regards,
Joseph I.