This is a migrated thread and some comments may be shown as answers.

Fill in a second grid by selecting a row on first grid

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rocio
Top achievements
Rank 1
Rocio asked on 02 Aug 2016, 12:46 PM

 I need to fill in a second grid based on the selected row of the top grid.  Second grid is a vertical layout grid, not the regular grid.

I am having problem on line 211 (3rd page) on options.success(appItem).  I get that javascript don't have the property or method slice when getting the data back.

I had included on the 4th page what's being returned.

 

 

1 Answer, 1 is accepted

Sort by
0
Rocio
Top achievements
Rank 1
answered on 02 Aug 2016, 05:58 PM

I was able to figure out by doing the following modification to this function:

    function AdditionalInfoBind(AuditID) {

        var vm = kendo.observable(fhfa.vm.default({
            container: $("#app-main"),
            appVersion: audit.constants.appVersion
        }));
        var o = audit.auditCollection({});
        vm.set("audit", o);

        vm.audit.loadDetail(AuditID).done(function (eResult) {
            vm1.set("auditID", eResult.gridDetail[0].auditID);
            vm1.set("auditTypeID", eResult.gridDetail[0].auditTypeID);
            vm1.set("auditDate", eResult.gridDetail[0].auditDate);
            vm1.set("applicationName", eResult.gridDetail[0].applicationName);
            vm1.set("auditUser", eResult.gridDetail[0].auditUser);
            vm1.set("iPAddress", eResult.gridDetail[0].iPAddress);
            vm1.set("auditDescription", eResult.gridDetail[0].auditDescription);
            vm1.set("additionalInfo", eResult.gridDetail[0].additionalInfo);

        });
    }

Tags
Grid
Asked by
Rocio
Top achievements
Rank 1
Answers by
Rocio
Top achievements
Rank 1
Share this question
or