Created
October 21, 2014 08:01
-
-
Save lohithgn/a1978d15afdf46c510a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onSearch() | |
{ | |
var q = $("#txtSearchString").val(); | |
var grid = $("#kGrid").data("kendoGrid"); | |
grid.dataSource.query({ | |
page:1, | |
pageSize:20, | |
filter:{ | |
logic:"or", | |
filters:[ | |
{field:"CustomerID", operator:"contains",value:q}, | |
{field:"CompanyName", operator:"contains",value:q}, | |
{field:"ContactName", operator:"contains",value:q} | |
] | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment