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

2 posts, 0 answers
  1. Rocio
    Rocio avatar
    28 posts
    Member since:
    Dec 2015

    Posted 02 Aug Link to this post

     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.

     

     

  2. Rocio
    Rocio avatar
    28 posts
    Member since:
    Dec 2015

    Posted 02 Aug Link to this post

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

            });
        }

  3. Kendo UI is VS 2017 Ready
Back to Top