Hierarchy Grid

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");

            }
        });

    }

1 Reply

JK Jayaprakash Kamaraj Syncfusion Team January 20, 2017 09:55 AM UTC

Hi Anoopa, 
 
Thank you for contacting Syncfusion support. 
 
We have already discussed the same in following knowledge base document. 
 

Regards, 
 
Jayaprakash K. 


Loader.
Up arrow icon