Open kimiyon27 opened 1 year ago
You must use the GridClient object in the front-end to display the ItemToDisplay serialized object sent by the back-end.
You can follow this guide: https://github.com/gustavnavar/Grid.Blazor/blob/master/docs/blazor_client/Quick_start.md
Thank you @gustavnavar but now am facing another issue when ever I applying some filter the value was not passed to the api
var query = new QueryDictionary
every time the query obj(query) we send from here is received not we applied one
program.cs file services.AddHttpContextAccessor(); razor file
@inject IHttpContextAccessor HttpContextAccessor
var query = HttpContextAccessor.HttpContext.Request.Query;
var dictionary = ConvertToDictionary(query);
var clients = new GridClient<WorkflowsModel>(HttpClient, "app/Data", dictionary, false, "appGrid", Columns)
.Sortable()
.Filterable()
.WithMultipleFilters();
public static QueryDictionary
foreach (var kvp in queryCollection)
{
dictionary.Add(kvp.Key, kvp.Value);
}
return dictionary;
}
Is this right
I cant not see what is wrong in your code.
Could you open a new issue attaching the a visual studio project with your code?
Its working fine
I am using to grid in asp.net mvc core there is an samples for ItemToDisplay in example application but don't know how display data in frontend I am using web and webapi facing problem in passing query to api and also passing ISGrid to web can't able to serialize and deserialize the data plz give me some help