How to set the datasource for child grid from
detailsexpand event
. Below is my code
function detailsexpand(args) {
var term = $("#term_code").val();
var coursecrn = args.masterData.CourseCrn;
$.ajax({
type: "POST",
url: "getstudentsdata",
dataType: "json",
data: "{ term:'" + term + "',crn:'" + coursecrn + "'}",
contentType: "application/json; charset=utf-8",
success: function (data) {
var formatData = ej.parseJSON(data);
// Need to set the child datasource here
$("#Grid").ejWaitingPopup("hide");
}
});
}