mardi 17 mai 2016

Filtering with multiple selections using angularjs?

I am doing filtering with multiple selected options. Here I want to filter the data based on my single and multiple selection(s).

The data is filtering fine with the single selection(Like: if I select any either Name or Description dropdown checkbox, then the selected checkbox related data is coming fine).

But I need one more filtering along with this, means, if I select multiple checkboxes(say: one checkbox from Name and one checkbox from Description), then those respective matched data should come or display(for example: if I select "name 1" checkbox and "description 1" checkbox of Name and Description dropdowns, then those relevant matched data should come or display, so that I should see "name 1" in "Name" column and "description 1" in "Description" column. So I need multiple selection data.

Similarly for other options too, like if I select "name 1" checkbox and "description 2" checkbox, then it's relevant data should come). Created Fidddle

How can I do this ? Please help me and Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire