Can we convert the filter option to a drop down option list ?
Can we convert the filter option to a drop down option list ?
Mazhar123
Posts: 17Questions: 4Answers: 0
https://datatables.net/examples/api/regex.html : Here, we can see there are options like how do we want to filter the table i.e. Global search or column name wise search. I want this to come as a drop down option. How can I achieve it ?
Please help me with this.
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @Mazhar123 ,
These two examples, here and here, should get you going,
Cheers,
Colin
Hi @colin, I looked at them but that's not exactly what I want. I have put up a small example which I want . Link : https://jsfiddle.net/e93ncz06/
Please have a look at it. Can you please have a look at it. Thanks
Hi @Mazhar123 ,
I see - this here isn't quite what you want but it's close enough for you to use as a starting point.
Cheers,
Colin
Thanks @colin , I will try to achieve what I am trying to implement using your suggested links.
Regards,
Mazhar
I am not able to open this link : https://t.datatables.net/forums/discussion/29675/multiple-tables-only-initializes-the-first-table-selected
Can you please check ?
Try without the "t." - not sure where that came from:
https://datatables.net/forums/discussion/29675/multiple-tables-only-initializes-the-first-table-selected
Thank @colin. You have been very helpful. I just have one last query .
Link: https://datatables.net/examples/api/regex.html
If you see in this link, how can someone apply this if we have multiple dataTables in our page ?
Is there any way out to solve this.
Hi @Mazhar123 ,
You could do something like this here.
Cheers,
Colin
Thanks @colin for your precious time. That gave me some idea but it didn't totally solve my problem. After working on it for hours , I finally got it done with lot of addition.
I will soon share how I am using https://datatables.net/examples/api/regex.html
so that we can have multiple tables and still got that working efficiently.
Thanks a lot once again for your suggestions and helpful links. You are amazing.
Regards,
Mazhar