Skip to content

Instantly share code, notes, and snippets.

@Deathspike
Deathspike / gist:51475196ad129d4835dd
Created August 20, 2014 12:06
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);
})();