Hi Megatron,
Thanks for contacting Syncfusion support.
We have analyzed your query and we have prepared a sample based on your requirement and the same can downloaded from the below link.
In the sample we have rendered the grid control using HTML Helpers instead of using Tag Helpers.
Please refer the below code example.
@{Html.EJ().Grid<object>("Grid") .Datasource(ds => ds.Json(ViewBag.data)) .AllowPaging() .Columns(col => { col.Field("EmployeeID").HeaderText("EmployeeID").TextAlign(TextAlign.Left).Add(); col.Field("CustomerID").HeaderText("CustomerID").TextAlign(TextAlign.Left).Add(); }).Render(); } |
From the above code example we have rendered the grid in asp.net core. To render the Grid control, it is must to give .Render() in the view page.
Please let us know if you need further assistance.
Regards,
Manisankar Durai.