Clearing a datatable with server side processing on

Clearing a datatable with server side processing on

jeetu1607jeetu1607 Posts: 2Questions: 0Answers: 0
edited May 2013 in DataTables 1.9
Hi Everyone,

I am using Datatables in one of my projects and I must say its a wonderful tool.

I am stuck with one requirement though, I am pretty sure that many people must have come across such a scenario. I am using server side processing for implementing server side pagination and sorting. My server side code is a Spring MVC based Java code. Now, everything works good until user wants to clear the table and do a fresh search. I have a button in my JSP page to clear all search fields and want to clear the table on click of the same too. If I use 'fnClearTable()' it subsequently makes a ajax calls and it fails my server side validation because of empty search and displays a error stating 'No Search Criteria Provided', this looks awkward as user did not do a search, but cleared the form instead.

Can anyone suggest solution to clearing the table without server side processing AJAX being called with server side processing on for the table?

Thanks in advance.

Godspeed,
Jeetu

Replies

  • jeetu1607jeetu1607 Posts: 2Questions: 0Answers: 0
    Hi Allan,

    Need your insight here.

    Godspeed,
    Jeetu
  • fds13fds13 Posts: 3Questions: 0Answers: 0
    Hi!

    I have the same question... Anybody?

    Tks!
This discussion has been closed.