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
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
DataSource = data.Cast
DataSource = DataOperations.PerformSorting(DataSource, dm.Sorted);
IEnumerable>(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>(DataSource.ToList());
return dm.RequiresCounts ? new { result = ResultData, count = count } : ResultData as object;
}
Please assist me on this!!
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.
Hi Team,
Any update on this?
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.
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.
Regards,
Naveen Palanivel.
Hi Kuldip,
Sorry for the Inconvenience.
we are not able to include the reported problem “Getting exception while doing server side filtering on date column” in 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
Hi Kuldip,
Sorry for the Inconvenience.
we are not able to include the reported problem “Getting exception while doing server-side filtering on date column” in 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
Hi Kuldip,
We are glad to announce that, we have included fix for the issue “Getting exception while doing server side filtering on date column” in 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