Skip to content

Instantly share code, notes, and snippets.

@Deathspike
Created August 20, 2014 12:06
Show Gist options
  • Select an option

  • Save Deathspike/51475196ad129d4835dd to your computer and use it in GitHub Desktop.

Select an option

Save Deathspike/51475196ad129d4835dd to your computer and use it in GitHub Desktop.
ASP.NET Grid.Mvc default filter to 'Contains' via JS
(function () {
TextFilterWidget.prototype.renderWidget = (function(fn) {
return function() {
this.value.filterType = '2';
fn.call(this);
};
})(TextFilterWidget.prototype.renderWidget);
})();
@cherry3
Copy link

cherry3 commented Mar 9, 2017

Topper!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment