我在页面上有Kendo Grid和ForeignKey列.如下所述,使用ViewData填充ForeignKey列.
column.ForeignKey(x => x.ProductID, (List<Product>)ViewData["products"], "ID", "ProdName");
Run Code Online (Sandbox Code Playgroud)
网格可以批量(InCell)模式编辑,如下所示...
.Editable(editable => editable.Mode(GridEditMode.InCell)
Run Code Online (Sandbox Code Playgroud)
我想根据在Grid外部定义的其他下拉列表中选择的值,在页面加载后修改网格中的ProductID列的集合.
我怎样才能做到这一点?我可以使用jQuery吗?
我在这里找到类似的例子...... http://www.telerik.com/community/forums/aspnet-mvc/grid/cascading-dropdowns-in-grid-edit---foreignkey-columns.aspx
谢谢.