We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Excel filter in DateTime? column

Hi. When we use the DateTime? data type in a grid column with null values, there are 2 problems.

1) If the first value in the dataset is null, then the column formatting does not work:



2) And this is critical. If using the Excel filter we select an Blanks (null) values, an error occurs:





Please offer solutions to these issues, especially the second. Thanks.


15 Replies

CO Costa March 31, 2019 07:59 AM UTC

P.S. Sample project in the attachment.

Attachment: AspNetCore3_EJ2_3ad90e3b.zip


TS Thavasianand Sankaranarayanan Syncfusion Team April 1, 2019 08:34 AM UTC

Hi Costa, 

Greetings from Syncfusion support. 

By default columns type set based on the first record in Grid dataSource but in your case you have null value for first record in Grid. So, we suggest you to set type for those column in Grid.   

Refer the help documentation. 


Please let us know if you need further assistance on this. 

Regards, 
Thavasianand S. 



CO Costa April 1, 2019 11:15 AM UTC

Thank you for answering the first part of the question. Have you noticed that the question consists of two parts? "2) ...If using the Excel filter we select an Blanks (null) values, an error occurs" What about the second part? The second part is the main one.
To make it easier to understand, an example is attached to the question. See the attachment.


TS Thavasianand Sankaranarayanan Syncfusion Team April 2, 2019 07:16 AM UTC

Hi Costa, 
 
Query: If using the Excel filter we select an Blanks (null) values, an error occurs" What about the second part? 
 
We have validated your query and checked the reported problem at our end. We have tried to run your sample but due to some dependencies errors, we could not run your sample. We have prepared a sample based on your requirement. It works fine. Please find the below sample for your reference. 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
Thavasianand S. 



CO Costa April 2, 2019 08:07 AM UTC