Using 'colvis' button to hide/display columns -- cannot display column headers dynamically

Using 'colvis' button to hide/display columns -- cannot display column headers dynamically

dalongdalong Posts: 1Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
New to the topic and first time asking questions.
After clicking the button extending 'colvis', a window (let's call it colvis window) pops up containing all column headers of the data table. One of the column header is dynamic: it depends on some selected values from two dropdown menus. However, the corresponding column header text appears in the colvis window only is always some hardcoded html text instead of the dynamic text.
Any suggestions on how to make it display that column header dynamically? Thanks!

Dalong

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.