Getting exception while doing server side filtering on date column

Hi Team,


I am using sync fusion data grid and I am getting an exception when searching on date column.

And we are using sync fusion grid nuget.





When we start entering date and it call the URl.


MY CODE IS AS

<SfGrid TValue="OrderResponse" @ref="OrderGrid"

        AllowPaging="true"

        AllowSorting="true"

        AllowFiltering="true"

        GridLines="GridLine.Both"

        AllowTextWrap="true"

        Toolbar="@(new List<string>() { "Search" })" @attributes="@(new Dictionary<string, object>(){ { "class", "table-striped" }})">

    <GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Excel"></GridFilterSettings>

    <SfDataManager Url="@OrderEndPoints.GetAllOrder" Adaptor="Adaptors.UrlAdaptor"></SfDataManager>

    <GridPageSettings PageSize="10" PageSizes="@pagerDropdown" PageCount="3"></GridPageSettings>

    <GridColumns>

        <GridColumn Field="OrderTypeName" HeaderText="Source" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="OrderDate" Format="dd/MM/yyyy" Type="ColumnType.Date" HeaderText="Date" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="OrderReference" HeaderText="N° commande" Format="d" TextAlign="TextAlign.Center">

            <Template>

                @{

                    var model = (context as OrderResponse);

                    <span style="color: blue; cursor: pointer;" @onclick="@((e) => OpenDialog(model))">@model.OrderReference</span>

                }

            </Template>

        </GridColumn>

        <GridColumn Field="ClientReference" HeaderText="N° client" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="AxelisReference" HeaderText="Réf Axelis" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="TrackingNumber" HeaderText="N° tracking" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="AddressName" HeaderText="Destinataire" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="ZipCode" HeaderText="Code postal" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="City" HeaderText="Ville" TextAlign="TextAlign.Center"></GridColumn>

        <GridColumn Field="Country" HeaderText="Pays" TextAlign="TextAlign.Center"></GridColumn>

    </GridColumns>

</SfGrid>



Server side Code

[HttpPost("GetAllOrder")]

public object GetAllOrder([FromBody] DataManagerRequest dm)

{

return _orderService.GetAllOrder(dm);

}


Service Code

public object GetAllOrder(DataManagerRequest dm)

{

var DataSource = _unitOfWork.EmbryolisseRepository().Entities;

if (dm.Skip == 0 && dm.Take == 0 && dm.Sorted.Count > 0)

{

if (dm.Where != null && dm.Where.Count > 0) //Filtering

{

DataSource = DataOperations.PerformFiltering(DataSource, dm.Where, dm.Where[0].Operator);

}

var data = (IQueryable)DataOperations.PerformSelect(DataSource, dm.Sorted.Select(x => x.Name).ToList());

DataSource = data.Cast().Distinct().AsQueryable();

DataSource = DataOperations.PerformSorting(DataSource, dm.Sorted);

IEnumerable ResultData1 = _mapper.Map>(DataSource.ToList());

return dm.RequiresCounts ? new { result = ResultData1, count = DataSource.Count() } : ResultData1 as object;

}

if (dm.Search != null && dm.Search.Count > 0)

{

DataSource = DataOperations.PerformSearching(DataSource, dm.Search); //Search

}

if (dm.Sorted != null && dm.Sorted.Count > 0) //Sorting

{

DataSource = DataOperations.PerformSorting(DataSource, dm.Sorted);

}

if (dm.Where != null && dm.Where.Count > 0) //Filtering

{

DataSource = DataOperations.PerformFiltering(DataSource, dm.Where, dm.Where[0].Operator);

}

int count = DataSource.Count();

if (dm.Skip != 0)

{

DataSource = DataOperations.PerformSkip(DataSource, dm.Skip); //Paging

}

if (dm.Take != 0)

{

DataSource = DataOperations.PerformTake(DataSource, dm.Take);

}


IEnumerable ResultData = _mapper.Map>(DataSource.ToList());

return dm.RequiresCounts ? new { result = ResultData, count = count } : ResultData as object;

}


Please assist me on this!!


7 Replies

NP Naveen Palanivel Syncfusion Team May 2, 2022 04:29 PM UTC

Hi kuldip sharma,


Greetings from Syncfusion.


We are currently checking the reported query at our end and we will update the further details within two business days(May 5, 2022). Until then we appreciate your patience.



Regards,

Naveen Palanivel.



KS kuldip sharma May 5, 2022 02:40 PM UTC

Hi Team,


Any update on this?



NP Naveen Palanivel Syncfusion Team May 5, 2022 04:13 PM UTC

Hi kuldip sharma,


Greetings from Syncfusion.


We are currently checking the reported query at our end and we are able to reproduce the reported issue at our end also. We need some more time to validate the reported query further at our end, we will update the further details within two business days(May 9, 2022). Until then we appreciate your patience.


Regards,

Naveen Palanivel.



NP Naveen Palanivel Syncfusion Team May 9, 2022 03:00 PM UTC

Hi kuldip sharma,


Greetings from Syncfusion support.


We have considered your query as a bug and logged the defect report” Getting exception while doing server side filtering on date column” for the same. 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 will include the fix in our upcoming patch release which is expected to be rolled out on or before  June 15th , 2022. Until then we appreciate your patience.


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. 


https://www.syncfusion.com/feedback/34752/getting-exception-while-doing-server-side-filtering-on-date-column


Regards,

Naveen Palanivel.



SP Sarveswaran Palani Syncfusion Team June 15, 2022 05:46 PM UTC

Hi Kuldip,


Sorry for the Inconvenience.

we are not able to include the reported problem “Getting exception while doing server side filtering on date columnin our mentioned patch release as promised. We have planned to include this in our upcoming patch release which is expected to be rolled out by 29th June 2022.

Till then we appreciate your patience.    


Regards,   

Sarveswaran PK 



SP Sarveswaran Palani Syncfusion Team July 4, 2022 03:30 PM UTC

Hi Kuldip,


Sorry for the Inconvenience.


we are not able to include the reported problem “Getting exception while doing server-side filtering on date columnin our mentioned patch release as promised. We have planned to include this in our upcoming patch release which is expected to be rolled out by 13th July 2022.

Till then we appreciate your patience.    


Regards,   

Sarveswaran PK



SP Sarveswaran Palani Syncfusion Team August 11, 2022 04:03 PM UTC

Hi Kuldip,


We are glad to announce that, we have included fix for the issue Getting exception while doing server side filtering on date columnin our release(20.2.0.43).  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the Nuget package for latest fixes and features from below.


Nuget : https://www.nuget.org/packages/Syncfusion.Blazor.Grid


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you need any further assistance. 

   

Regards,            

Sarveswaran PK


Loader.
Up arrow icon