Dropdown Multiple select with Search and Select All like Excel - Page 2

Dropdown Multiple select with Search and Select All like Excel

2»

Answers

  • kthorngrenkthorngren Posts: 21,299Questions: 26Answers: 4,944

    Oh, so you want and AND search not an OR search. Thats a bit more complex. You will need something like this:

          //join array into string with regex or (|)
          var val = data.map(function( n ) {
            return ["(?=.*"+n+")"];
          });
        
          val = val.join("");
    

    Search string will look like this: (?=.*tag 3)(?=.*tag 4)(?=.*tag 9).

    https://live.datatables.net/duyuzaqi/1/edit

    Kevin

  • makimaxmakimax Posts: 45Questions: 2Answers: 0

    Ouaw ! Perfect ! o:)
    Thanks again and again !

  • makimaxmakimax Posts: 45Questions: 2Answers: 0
    edited March 6

    Is a Searchpane could have AND / OR option ?
    Edit : I think with combiner 'and'

  • kthorngrenkthorngren Posts: 21,299Questions: 26Answers: 4,944
Sign In or Register to comment.