[DefaultController.cs]
[HttpGet]
public object Get()
{
try
{
Microsoft.AspNetCore.Http.IQueryCollection queryString = Request.Query;
...
StringValues sSkip, sTake, sFilter, sSort;
int skip = (queryString.TryGetValue("$skip", out sSkip)) ? Convert.ToInt32(sSkip[0]) : 0; //paging query
int top = (queryString.TryGetValue("$top", out sTake)) ? Convert.ToInt32(sTake[0]) : countAll;
string filter = (queryString.TryGetValue("$filter", out sFilter)) ? sFilter[0] : null; //filter or search query
string sort = (queryString.TryGetValue("$orderby", out sSort)) ? sSort[0] : null; //sort query
...
}
|
Hi Syncfusion Team,
Many thanks for the sample (EFGridFilterSort-1775235179). It was very helpful.
I have an issue using GetExpressionFilter with long variables. I had to add additional 'else if' in the method.
I will help if you share also a sample controller for WebApiAdaptor for using multi-selected delete [HttpDelete] and batch edit [HttpPut]
Thanks
Shay B.