how handle server side written with rest api for single coloumn search?
how handle server side written with rest api for single coloumn search?
iman.tmd
Posts: 2Questions: 1Answers: 0
i have a GET REST API which return list of fields, now i want to have a single column search on my data table. but i dont know how handle this problem? any one has any idea or sample?
This discussion has been closed.
Answers
You can use individual column searching with inputs with server side processing:
https://datatables.net/examples/api/multi_filter.html
Datatables will send the request to the server indicating which column is being searched. This is described here under Sent Parameters:
https://datatables.net/manual/server-side
Your server side code is responsible for performing the column based search and returning the appropriate data.
Kevin
any better example with front and back?
I made the assumption you want/need server side processing. You may not depending on the number of rows. You are better off with client side processing if the performance is not a problem.
Maybe you can describe in more detail what you are trying to do. Here is the page with the examples:
https://datatables.net/examples/index
Kevin