Master-detail kendo ui grid (when select row in master grid get entries in details grid)

后端 未结 1 1911
遇见更好的自我
遇见更好的自我 2021-01-25 14:14

I am working with master-details kendo ui grid, which is separated. Master grid is located within tabstrip 1 (tabstrip.select(0)). Fields for add/edit (for master grid) is locat

相关标签:
1条回答
  • 2021-01-25 14:49

    I'm not sure if I get your 100% right, but I have made a simple example based on your case. The point is, when you change the master grid's selected row, you have to filter the detail grid, like:

    change: function() {
        var gridDetails = $("#grid-detail").data("kendoGrid");
        var dataItem = this.dataItem(this.select());
        gridDetails.dataSource.filter({ field: "parentId", value: dataItem.id, operator: "eq" });
    }
    

    Demo

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