Can't get multi-filter select to populate with data

Can't get multi-filter select to populate with data

reefoidreefoid Posts: 3Questions: 1Answers: 0

Hi

In DT 1.9.4 I was using the columnnfilter plugin to generate filter select lists but the plugin isn't working on DT 1.10 so I'm trying to implement the multi-filter select example you provide in the download. I can get text filters to work as expected, but when I add the js to get the select filters working, the dropdowns aren't being populated with data.

You can find an example in the last two columns here:

http://reports.reddans.co.uk/dev/reports2/tickets.php

I'm not getting any errors reported. The DT debugger reference is eyelab.

Am I missing something obvious?

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin

    You are Ajax loading the data, so you need to create the select elements once the data is available in the table. You can do that in initComplete . At the moment the select create code is running before the data has been loaded...!

    Allan

This discussion has been closed.