Search over orthogonal data not working

Search over orthogonal data not working

netpresentnetpresent Posts: 4Questions: 2Answers: 0

In the following simple case, I fill a datatable with orthogonal data for the name. One of the rows has a name containing Harry, which is in the data:

"name": {"display": "Tommy W.", "search": "Harry Winters"},

But if I type Harry into the search field, nothing is found.

What am I doing wrong here?

https://playak.com/tmp/datatablesscratch.php

Cheers,
Charona

Answers

  • kthorngrenkthorngren Posts: 13,577Questions: 25Answers: 3,193

    In your columns change the property name from search to filter, like this:

    { data: 'name', title: "Name", render: { _: 'display', filter: 'search', order: 'search'}},
    

    See the Orthogonal docs for the operation names.

    Kevin

  • netpresentnetpresent Posts: 4Questions: 2Answers: 0

    Thanks a lot Kevin!

Sign In or Register to comment.