Need help with Cascading search panes

Need help with Cascading search panes

redhat2020redhat2020 Posts: 3Questions: 1Answers: 0

Link to test case: http://live.datatables.net/yojoluda/2/edit
Error messages shown: "No data available in table" in "Topics" search pane
Description of problem:
Hello! I am trying to figure out an odd problem with my search pane. I am getting a "No Data available in table" when clearly there is data in the column. To recreate the problem, filter "Agency" by "Tennessee Valley Authority" and you will see the topics search pane with the error.

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @redhat2020 ,

    Because the topics option has data in an array format you need to add some rendering for SearchPanes to work with it properly, this is our example for this.

    I've also made an edit to your example that you can see here.

    Hope this helps,
    Sandy

  • redhat2020redhat2020 Posts: 3Questions: 1Answers: 0
    edited December 2020

    Thank you very much! However, in your updated example, the columns values are empty in the table. Is it related to my data not having an id and a name in the array? (as shown in the ajax from the example).

  • redhat2020redhat2020 Posts: 3Questions: 1Answers: 0

    update - think i figured it out. I removed ".name" and it appears to be working now.
    http://live.datatables.net/rupipusi/4/

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @redhat2020 ,

    Yes looks right to me - apologies.

    Thanks,
    Sandy

This discussion has been closed.