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.tmdiman.tmd Posts: 2Questions: 1Answers: 0
edited September 2017 in Free community support

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?

Answers

  • kthorngrenkthorngren Posts: 21,308Questions: 26Answers: 4,947

    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

  • iman.tmdiman.tmd Posts: 2Questions: 1Answers: 0

    any better example with front and back?

  • kthorngrenkthorngren Posts: 21,308Questions: 26Answers: 4,947

    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.

    any better example with front and back?

    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

This discussion has been closed.