ng-grid column level filtering with substring search -


i have looked @ plunker.

http://plnkr.co/edit/wjztr8ar8dhwijxelny1?p=preview 

it filters on first characters. has attempted perform filtering based on substring search. if please let me know

i worked on modifying filter text shown

angular.foreach(filterbarplugin.scope.columns, function(col) {                 if (col.visible && col.filtertext) {                     var filtertext = (col.filtertext.indexof('*') == 0 ? col.filtertext.replace('*', '') : col.filtertext + "^") + ";";                     searchquery += col.displayname + ": " + filtertext;                 }             }); 

the original plunkr design filtering beginning characters. if went filtering substring, can try * begin filter textbox.

if don't it, can modify filterbarplugin function :

var filtertext = (col.filtertext.indexof('*') == 0 ? col.filtertext.replace('*', '') : "^" + col.filtertext) + ";"; searchquery += col.displayname + ": " + filtertext; 

to

var filtertext = col.filtertext +'; '; searchquery += col.displayname + ": " + filtertext; 

example

updated: fixed not allow multiple column sorting, @mainguy


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -