i have used search pane and then switched on the cascade pane option but if i select values from the pane the filter change function executes twice.
find below test case.
This question has an accepted answers - jump to answer
Can you repost, please, the test case is missing,
@colin Apologies please find below the test case
Yep, I'm seeing that in this cut-down example here. I've raised it internally (DD-2120 for my reference) and we'll report back here when there's an update.
Hi @valredr ,
I've made a change to try and reduce the number of calls to searchPanes.filterChanged. Unfortunately this is hard to reduce further given searchPanes.cascadePanes complex functionality - there's a lot of moving parts and edge cases that need to be covered!
This will be available in the next SearchPanes release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.
Take a look at this example with the updated nightly build.
Another way to reduce the number of times the code in that function runs would be to put a throttle function within it.
@sandy Can you please share an example of how to implement the throttle function in this case
Sure take a look at this example. The docs for the throttle function can be found at $.fn.dataTable.util.throttle().
Hope this helps,
@sandy Thanks you very much this was quite helpful
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.