Only show dattable when the a value is selected in SearchPane
Only show dattable when the a value is selected in SearchPane
Khalid Teli
Posts: 251Questions: 71Answers: 0
Hi,
How can I hide the datatable initially and then display it based on the values selected in seachpane?
For example: when I load the page m, datatable should be hidden and when I select any value using search panes it should only display the table with that selected data
Can anyone please help?
Thank you
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @Khalid Teli ,
Take a look at this example that I've put together. Hopefully it can get you started.
Thanks,
Sandy
@sandy
Thank you. as I am using ajax souirce data so I had to move it inside
innitcomplete function
.However, the deselect doesnt seem to work
thanks to @kthorngren who helped me with this few months back.
Also, any luck with this ? https://datatables.net/forums/discussion/comment/182471#Comment_182471
Could you modify Sandy's example to demonstrate the problem, please.
And yep, that other issue has been addressed, I've made a comment on that thread,
Colin
@colin thank you
As, I work on local host , it is difficult to replicate the issue. I have tried to replicate what I can
1) When i put
Scrollx: true
, the table header doesn't hidelive.datatables.net/zazebapi/1/edit
2) when I
select
any value in the search pane the table appears. However when Ideselect
the value the table doesn't hide . Deselecting the value should make table diappear similar to as shown in example above.DataTables uses an overlay for the scrolling, so you need to hide that too:
See here - that fixes both of those points,
Colin