-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to filter? #137
Comments
Okay, there must have been a typo somewhere, because it works now for some reason... However, the 2nd question remains: Can i somehow define, which column/property i want to search? Currently, all columns/properties are searched, which is fine in most cases, but doesn't exactly fit my needs. |
The col_defs definition has a property Please look at the readme (https://github.com/khan4019/tree-grid-directive/blob/master/README.md) - there you can find the description and some example code. A full working example is under http://khan4019.github.io/tree-grid-directive/test/treeGrid.html |
That's not the point, however you gave me an idea. I could maipulate the |
Ah, I should read more carefully ;-) Yeah, if you like to search different cols (eg. with multiple inputs) you can't do that at the moment right out of the box. But your idea sounds good - if you dynamically change the |
Made it work. Maybe not the most elegant solution, but a success for an angular beginner :P
Where
|
Doesn't look to bad ;-) |
You need a variable named |
Hi SoftCreatR, do you have any plnkr or jsfiddle? |
Hi,
i try to create a filter, but i must be too stupid. First of all: I use Controller-As, so the model name is
controller.filterString
if that makes any difference.I have created a simple text input:
That doesn't make anything. I also removed the
controller.
from the model name, but still no luck. Addingconsole.log(filterString)
to thesearchFor
filter always returns undefined.Is there a working example?
Furthermore, i would like to know if i can control, what property should be used to filter (e.g. search for xxx in column A or search for yyy in columnB).
The text was updated successfully, but these errors were encountered: