Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created October 21, 2014 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohithgn/a1978d15afdf46c510a0 to your computer and use it in GitHub Desktop.
Save lohithgn/a1978d15afdf46c510a0 to your computer and use it in GitHub Desktop.
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