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



CO Costa April 2, 2019 08:12 AM UTC

Thank you, but in your example there is not a single column 'Datetime?' With columns of other types of problems not yet detected, and I did not mention other types. I'm talking in this thread about the type of 'Datetime?' and only about him.


CO Costa April 2, 2019 08:30 AM UTC

I added to your sample a  property 'public DateTime? OrderDate {get; set; }'. I hope you can run it. There, this error is perfectly reproduced. See the attachment.

Attachment: RazorpagesFilter_350e5299.zip


CO Costa April 5, 2019 07:05 AM UTC

Is There Anybody Out There?


TS Thavasianand Sankaranarayanan Syncfusion Team April 5, 2019 08:58 AM UTC

Hi Costa, 
 
We have validated the defect Grid filter does not filter the null date values properly you have initiated with us. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming Volume 1 SP1 release which will be rolled out in the month end April, 2019. 
  
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  
  
 
Until then please use the following workaround to achieve your requirement. 
 
 
<ejs-grid id="Grid" allowPaging="true" load="onLoad" actionBegin="begin" toolbar="@( new List<object>() {"Add","Edit","Delete","Update","Cancel"})" allowFiltering="true"> 
    <e-grid-editsettings allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editsettings> 
    <e-grid-filterSettings type="Excel"></e-grid-filterSettings> 
    <e-data-manager url="/Index?handler=DataSource" insertUrl="/Index?handler=Insert" updateUrl="/Index?handler=Update" removeUrl="/Index?handler=Delete" adaptor="UrlAdaptor"></e-data-manager> 
    <e-grid-pageSettings pageCount="5" pageSize="5"></e-grid-pageSettings> 
 
    ... 
</ejs-grid> 
 
<script> 
 
    function begin(args) { 
        if (args.requestType === "filtering") { 
            args.columns[0].value = null; 
        } 
    } 
 
    ... 
</script> 
 
Please let us know if you need further assistance on this.   
  
Regards,
Thavasianand S. 



CO Costa April 5, 2019 12:10 PM UTC

Thanks.


TS Thavasianand Sankaranarayanan Syncfusion Team April 5, 2019 12:14 PM UTC

Hi Costa, 
 
Thanks for your update. 
 
We will update the patch release details once Volume 1 Service Pack get released on April, 2019. 
 
Regards, 
Thavasianand S. 



CO Costa May 18, 2019 09:41 AM UTC

You promised to fix it at the end of April 2019, but the problem persists. Do you think this problem is irrelevant?


TS Thavasianand Sankaranarayanan Syncfusion Team May 20, 2019 01:09 PM UTC

Hi Costa, 
 
Sorry for the inconvenience caused. 
 
Due to some complexities we could not include the fix in our Volume 1, SP 1 release. However we will include this fix in our upcoming patch release which will be rolled out on May 29, 2019. Until then we appreciate your patience.  
 
Regards, 
Thavasianand S. 



TS Thavasianand Sankaranarayanan Syncfusion Team June 3, 2019 09:33 AM UTC

Hi Costa, 

Sorry for the inconvenience caused. 

We will include this fix in our tomorrow’s 4th June, 2019 patch release. Once it released we will update you the release related details. 

Until then we appreciate your patience. 

Regards, 
Thavasianand S. 



TS Thavasianand Sankaranarayanan Syncfusion Team June 10, 2019 01:31 PM UTC

Hi Costa, 
Thanks for your patience. 
 
We are glad to announce that our latest patch release (17.1.50) has been rolled out successfully and in that release, we have added the fix for the issue Grid filter does not filter the null date values properly. 
 
Regards, 
Thavasianand S. 


Loader.
Up arrow icon