Skip to content

Instantly share code, notes, and snippets.

@NamTThai
Created December 9, 2015 21:22
Show Gist options
  • Save NamTThai/9360bb9a7cea932814cc to your computer and use it in GitHub Desktop.
Save NamTThai/9360bb9a7cea932814cc to your computer and use it in GitHub Desktop.
eFilterCustom: function(headerName, filterValue, item) {
switch(headerName) {
case "ID":
switch(filterValue) {
case "Selected":
return item.selected;
case "Not Selected":
return !item.selected;
default:
return this._defaultFilter(item.id, headerName);
}
break;
default:
return this._defaultFilter(item[headerName], headerName);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment