Skip to content Skip to sidebar Skip to footer

Onclick Event Not Work With Multi_select Filter - Javascript

I read docs here for filter_type but I don't understand how provide thiese arguments onclick event label.lightblue (or label2.lightblue2..) for yadcf.exFilterColumn if I want to

Solution 1:

I will ignore your question because I'm not sure why you ended up trying the stuff you wrote there

The difference in your current scenario in which you want to trigger multi selct filter from the table row itself is that now instead of providing the text of the clicked element you need to provide an array with a single value which is that text you are familiar with, BUT if you want to make the click on row to add selections to your filters so if suppose you click on Tag1 and then on Tag2, you expect to see the filter populated with Tag1 and Tag2 you need to make the following:

Each time you click on the column value (Tag1 / Tag2 / etc, you must extract the current selected value of that column using the yadcf.exGetColumnFilterVal(...) , then add to this array your newly clicked value , and only then call the exFilterColumn function (with the new array that you just constructed.

If you will follow my instruction it should work just fine

Post a Comment for "Onclick Event Not Work With Multi_select Filter - Javascript"