Search does not work in columns where data: ""
Search does not work in columns where data: ""
I have a datatable with some defined columns. Most of them have data set to a specific item from the json I feed to it via ajax, however for one of the columms in datatable I have set data:"" and I use the render function to add some buttons to this column.
The unusual thing is that I would like these buttons to be searchable. So if I for example have a button called "Active" I want to be able to search for Active, but this does not work.
Would be nice to have something like renderSearchString, but I am sure there is another way to do this?
Kind regards
Jens
Replies
This is possible. Please post your code so we can see what you are doing. This simple example renders buttons. If you search for
active
you will see the only row with an Active button.http://live.datatables.net/lekoyuvu/1/edit
The Orthogonal Data docs explain how to do this.
Kevin
Worked perfectly. Thanks @kthorngren