Kendo UI with AngularJs: How to bind data on textbox fields when user select row in a grid

前端 未结 1 915
离开以前
离开以前 2021-01-28 14:37

I am working with Kendo UI and angular grid application. In my application I define Kendo TabStrip. In first tab I have Kendo UI grid with data and second tab contains appropria

1条回答
  •  难免孤独
    2021-01-28 15:10

    I am solve that problem. I was added change event function in $scope.gridMaster:

    $scope.gridMaster = {
        ...
        change: function () {
            var dataItem = this.dataItem(this.select());
            $scope.accountNumber = dataItem.AccountNo;
            $scope.postingDate = dataItem.PostingDate;
            $scope.description = dataItem.Description;
            $scope.maturityDate = dataItem.MaturityDate;
            $scope.documentType = dataItem.DocumentType;
        }
    }
    

    And I was change ng-model in my HTML page:

    0 讨论(0)
提交回复
热议问题