[HttpGet]
public object Get()
{
IQueryable<Projekte> data = db.GetAllProjektes().AsQueryable();
var count = data.Count();
var queryString = Request.Query; //Based on this request query, handle the search action.
string search = queryString["$filter"]; //get the search query here
...
}
|
Hi Syncfusion Team,
I hope you will find this in your best. I am working with "ODataV4Adaptor" + "SfGrid" in my Blazor app and found the same bug. I have "18.4.0.47" version installed. I am able to see the "$search" in HttpContext.Request.Query , but it is not translated to "$filter". You are requested to kindly get back to me on this ASAP.
Kind Regards,
Abdul Qadir Ahmed Abbasi
<SfGrid TValue="Order" @ref="GridInstance" AllowPaging="true" Toolbar=@ToolbarItems AllowFiltering="true">
<SfDataManager @ref="dm" Url="http://localhost:64956/odata/books" Adaptor="Adaptors.ODataV4Adaptor"></SfDataManager>
. . . . .
</SfGrid>
@code{
SfGrid<Order> GridInstance;
public SfDataManager dm{ get; set; }
protected override void OnAfterRender(bool firstRender)
{
base.OnAfterRender(firstRender);
(dm.DataAdaptor as ODataV4Adaptor).Options.EnableODataSearchFallback = true;
}
|