Why searchPanes button not work with searchPanes option???
Why searchPanes button not work with searchPanes option???
krm_fajar
Posts: 4Questions: 1Answers: 0
please help me how to mix searchPanes Button example https://datatables.net/extensions/searchpanes/examples/initialisation/collapseStart.html with cascadePanes option https://datatables.net/extensions/searchpanes/examples/initialisation/viewTotalCascade.html ??
sorry im new user.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
here is my code :
$(document).ready( function () {
$('#tabel_data').DataTable({
buttons:[
'searchPanes'
],
searchPanes:{
cascadePanes: true,
viewTotal: true
},
dom: 'Bfrtip',
});
} );
but, searchPanes config not work
What is not working? Without seeing your page its hard to say. My guess is you haven't installed the Search Panes, Select and Buttons extensions required for what you want to do. If this is the case you can use the Download Builder to generate the proper set of files.
If you still need help please post a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
thankyou for reply,
here my JSfiddle https://jsfiddle.net/r0hfed8L/
As you can see, when click button searchPanes will show, but cascadePanes option not work
Thanks for that test case - I think you've found a hole. I've raised it internally (DD-1330 for my reference) and we'll report back here when there's an update.
Cheers,
Colin
Sorry for the late response, this was addressed last week. It'll be in the next release, but you can confirm the solution by using the nightly releases here. See example here.
Colin
Any idea when the the next release will be available? I've confirmed the nightly build works with my setup, but unsure how to integrate that into my setup with BS4 styling.
Not currently sure. Probably in March, but we don't have a firm date yet.
How are you loading the files onto your page? I might be able to suggest how you can use the nightly.
Allan
Hey! I'm also looking forward to this feature. Any ETA on the next full release?
Sandy is wrapping up the features for SearchPanes 1.1 at the moment. Expecting it within the next couple of weeks.
Allan
Hi, also eagerly waiting for this feature. Thanks.
Me too
It's been released now, 1.1.0 is out. We're likely to make another interim release this week, probably 1.1.1 to address some issues that have been found.
Colin
Hey, can confirm this functionality now works. Thanks to the team!
Hello, I still have this issue as of today 8/6/2020.
I have the latest version downloaded (1.1.1) but when the searchPanes button is enabled, then all its options do not work, especially:
- Cascading
- layout
- view total
I attached a pic of my folder structure, to show all the modules I have downloaded.
This is my code
@maurog1987 - Please link to a test case showing the issue.
Thanks,
Allan
@allan - Since I am having the same issue, and Maurog hasn't responded, I made a test case: http://live.datatables.net/quvozomu/1/edit
Displaying searchPanes with 'P'
"dom":'PBCrtip'
and thecascadePanes
anddataLength
works properly, but remove the 'P' and they no longer work.Hi @zmdavis and @maurog1987,
You need to configure the SearchPanes instance through the config option of the button, see this example. It would also be worth pulling in your SearchPanes file from the nightly builds, there are a couple of bug fixes relating to this that are in place there.
Thanks,
Sandy
Thanks, Sandy. The example you linked showing the
extend
option indeed fixed my issue - I wasn't configuring it correctly. Thanks again.