Hi, we created a custom method and when invoke the custom method the datagrid loads the data ok, but we have no paging available with it. We would like paging to work with our custom method.
This is the Code in the ServerMethodsController.cs
[Microsoft.AspNetCore.Authorization.Authorize(AuthenticationSchemes="Bearer")]
[EnableQuery(MaxExpansionDepth=10,MaxAnyAllExpressionDepth=10,MaxNodeCount=1000)]
[HttpGet]
public IActionResult GetAllSupaliPatients()
{
AuthController.AddTokenToHeader(this.HttpContext).Wait();
var items = this.context.SupaliPatients.AsQueryable<Models.SupAli.SupaliPatient>();
return Json(new { value = items }, new JsonSerializerSettings() { ContractResolver = new DefaultContractResolver() });
}