Data tables with server side processing

Data tables with server side processing

sabusabu Posts: 10Questions: 3Answers: 1
edited October 2015 in Free community support

I'm using jquery datatable in my project with Spring Mvc back end.I need to include alphabetical filter in my jquery datatable.I refer this page for alphabetical filter[https://www.datatables.net/blog/2014-09-22]. But this search is based on table loading data.I want to change this loading based search into server side.Thanks in advance..

Answers

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin

    So you want to apply a where filter at the server side? If so, can you not simply modify your SQL (or whatever you are using to retrieve the data) to append the condition?

    Allan

  • sabusabu Posts: 10Questions: 3Answers: 1

    I modify my sql query with where condition,after getting the sorting data,the number of entries in the datatable not changed.

  • sabusabu Posts: 10Questions: 3Answers: 1

    How to change the number of entries based on the filter data

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin

    How to change the number of entries based on the filter data

    What number of entries? The page length option? Can you please link to a test case showing the issue (per the forum rules).

    Allan

  • sabusabu Posts: 10Questions: 3Answers: 1

    showing entries

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Can you please link to a test case showing the issue (per the forum rules).

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin

    I don't quite understand why would you want to change the page length based on the number of results in the table. Could you tell us why that would be? It could probably be done using the page.len() and page.info() methods along with the draw event, but I can't see why it would be something that would be useful I'm afraid.

    Allan

This discussion has been closed.