Hi Vignesh,
Still am not getting. not able click the page buttons also. am not getting any java script error.
Am using visual studio 2017, project type is mvc.
to check the given refence link for gotoPage, my grid page buttons are not fireing.
@(Html.EJ().Grid<object>("testGrid").AllowPaging(true).PageSettings(page => page.PageSize(40))
.GridLines(GridLines.Both)
.Columns(col =>
{
col.Type("checkbox").Width("5").Add();
col.Field("Id").IsPrimaryKey(true).AllowEditing(false).Visible(false).Add();
col.Field("Data File Name").HeaderText("File Name").Width("40").AllowEditing(false).Add();
}).ClientSideEvents(e => e.ActionComplete("onActionComplete").ActionBegin("onActionBegin"))
)
in java script am assigning data source to grid
var promise = dataManager.executeQuery(query);
promise.done(function (e) {
var gridObj = $("#testGrid").ejGrid("instance");
gridObj.dataSource(e.result);
});
Controller:
public ActionResult GetUsers()
{
var result = string.Empty;
JsonSerializerSettings jss = new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
DateFormatHandling = DateFormatHandling.MicrosoftDateFormat,
DateFormatString = "dd-MMM-yyyy"
};
DataSet dsShowFiles = /*Get result from serives*/
result = JsonConvert.SerializeObject(dsShowFiles.Tables[0], Formatting.Indented, jss);
return Json(result, JsonRequestBehavior.AllowGet);
}
Thanks for the advance