Searchpanes and modal bootstrap

Searchpanes and modal bootstrap

BP7BP7 Posts: 2Questions: 0Answers: 0

Hi !

I'm new on Datatables.

When I click on a row of Datatables, this open a bootstrap modal with a Datatables inside. Howewer, the searchpane panel return no data on this modal (No SearchPanes).

Do you have an idea why the panel is empty and how solve it ?

Here an example : https://jsbin.com/qeguhivemi/edit?html,js,output

Thanks a lot.

Replies

  • colincolin Posts: 14,303Questions: 1Answers: 2,431
    edited March 16

    That's because of the searchPanes.threshold - that determines if the panes are unique enough to warrant displaying them. You can always display them by setting that threshold to 1.0, please see updated example : https://jsbin.com/yuzosidezo/1/edit?html,js,output

    Colin

  • BP7BP7 Posts: 2Questions: 0Answers: 0

    Oh nice thank you. Just another question : when I select a value (year 2021 for example), this doesn't filter the grid.

    Do you have an idea ?

    Thanks

  • colincolin Posts: 14,303Questions: 1Answers: 2,431

    It's because you have

    searching: false
    

    Remove that line, and you'll be good to go - the SearchPane is searching, so it's using that setting. If want to disable the searching from the table, use dom - something like https://jsbin.com/qebirahadi/1/edit?js,output

    Colin

Sign In or Register to comment.