基于级联下拉列表选择值的Kendo网格数据源过滤

时间:2013-03-14 11:40:41

标签: cascadingdropdown

I am working on Kendo UI,can anyone provide the solution how  to update Kendo grid datasource based on cascading drop-down list selected value.In Kendo demos I found cascading dropdownlists examples.

要求:

I have 3 dropdownlists,binding with 3 services,now I want to filter the grid data-source

基于下拉列表选择的值。

1 个答案:

答案 0 :(得分:3)

Hai,

          In onchange event of thrid dropdownlist,you need to filter the grid datasource based on codition
              Change:filterGrid

           and a create function:
               function filterGrid() {
                dataSource.filter([
                { field: "orders", operator: "equals", value: $("#OrderID").val() }
                ]);
            }