1

So I have a Kendo grid, that has two DropDownLists (DDL) in the toolbar.

The issue I am having is, the grid is dependent on the two DDLs, one which is loaded via an ajax call. However the grid does its ajax call before the DDL is populated, which leads to a failed call.

How can I force the grid to wait for the DDL to be populated.

Note: I CAN NOT give it a default value.

Thanks

4

1 回答 1

5

设置autoBindfalse。这将创建 Grid 但不会加载数据。

然后在DropDownList dataBound事件中通过调用强制加载 Grid grid.dataSource.read

于 2013-10-14T10:05:03.463 回答