close jquery tab causes search
close jquery tab causes search
HI
We are using Datatables with server side processing enabled as per below..
"bProcessing": true,
"sAjaxSource": "fetchtabledata.do",
"bDeferRender": true,
"bServerSide": true,
We have a data table shown in a jquery tab. When double clicking on an item in the data table, our UI is programmed to open a new jquery tab and switch to it. The tab contains the detail on the item. When closing the jquery tab it returns to the search tab. When the close tab event occurs, datatables redraws itself. However, if the user has scrolled several page down, datatables appears to the sAjaxSource url to fetch data again. This process is time consuming and distracting for the user. Is there any way to prevent datatables from searching again? The datatable is already rendered in the search tab, so is it really necessary to refetch the data? How to prevent this?
Much appreciate
Jamie
Answers
What are you doing in the close tab event handler?
Datatables will only redraw if requested to do so using something like
draw
orajax.reload
. Or it will happen when paging, sorting, etc happens. Please post a link to your page or a test case replicating the issue so we can help debug.Kevin