2013-12-21 23 views
1

我做了一些關於kendoui列搜索的google,並且對我感覺沒有確切的答案,所以我在這裏發佈它。請幫助或引導我在哪裏我可以找到我的要求。Kendo UI-單列,多列搜索

我將整合Kendoui Grid從我的數據庫中加載大量數據,我希望在網格中具有單列和多列搜索功能。

我的要求我們,當他們搜索值的用戶密鑰,則電網應該過濾用單柱以及多列檢索算法像下面的圖片enter image description here

我希望實現在劍道相同的搜索價值UI。

我知道kendoui有過濾功能,但是,我確實需要像下面的功能。 在此先感謝

+0

這正是我所需要的,仍然沒有找到一個好的答案。 – AlexRebula

回答

0

您可以使用網格數據源的filter方法執行過濾。就像這樣:

grid.dataSource.filter({ 
    // display items that meet any of the conditions 
    logic: "or", 
    // filter conditions 
    filters: [ 
    { field: "CompanyName", operator: "contains", value: "searchstring" }, 
    { field: "Country", operator: "contains", value: "searchstring" } 
    ] 
});