2

I have a Kendo grid that when you click on a row, I would like it to update the contents of another grid on the page. How would you write a function to tell the grid to update the second grid? As an example, the first grid would be a list of states and the second grid would show all of the cities within the selected state.

4

1 回答 1

0

只需在第一个表的行上绑定 click 事件:

$("#states tbody").on("click", "tr", changeState);

然后相应地更改第二个表的数据:

$("#cities").data("kendoGrid").dataSource.data(getListOfCities());

这里只是一些示例代码:jsFiddle

于 2013-04-22T07:47:28.943 回答