Hi,
I have two grids in a partial view, which are supposed to be updated on button click.
I am making an ajax call and trying render the html of the container div in success.
object in the controller is getting the data. However, response in the success function is returning the div's of two grids as empty.
I have tried all the solutions in the following link...But didn't work
https://www.syncfusion.com/forums/116929/partialview
I have also tried to return json as below. The grid content is changing as expected but not the Columns.
I have attached screenshots of ajax call and response alert.
var query = new ej.Query().addParams("Index", index).addParams("Value", value).addParams("data", grade).addParams("FineGrade", fineKey.toString()).addParams("FineValue",fineVal);
var ResultsGrid = ej.DataManager({ url: "/School/ResultsData", adaptor: new ej.UrlAdaptor() });
var promise = ResultsGrid.executeQuery(query);
promise.done(function (e) {
alert("success");
gridObj.dataSource(e.result.ListOfTables[0],true);
MainGrid.dataSource(e.result.ListOfTables[1],true);
});
Attachment:
grid_509c0ad1.zip