Hi
Here are my sample, the webapi well return 20 recoreds to grid. T grid will show full data in a page !
I wish paging grid, but not success. What is my problem ?
I study the online document, I find about this part (core mvc ej2), the information and sample seems very inadequate.
@Html.EJS().Grid("grid1").DataSource(dataManager=> { dataManager.Url("/api/Table001").CrossDomain(true).Adaptor("WebApiAdaptor");}).Columns(col=>{
col.Field("Name").HeaderText("Name").Add();
col.Field("Age").HeaderText("Age").Add();
}).AllowPaging().PageSettings(page=>page.PageCount(4).PageSizes(true)).ActionFailure("actionFailure").Render()
<script>
function actionFailure(args) {
var span = document.createElement('span');
this.element.parentNode.insertBefore(span, this.element);
span.style.color = '#FF0000';
span.innerHTML = 'Server exception: 404 Not found';
}
</script>