Convert list into dropdown

Convert list into dropdown

karibusanakaribusana Posts: 11Questions: 5Answers: 0

Hi,
I'm building a DataTable using some data from ajax call. I get a list of values separated by comma, can someone help me to rendere the list into a dropdown menu?

This is the screen shot of my datatable

I've tryed to pass the dropdown from the ayax call and this is what I've achieved

The only problem is if my list is empty I need to show an empty cell but at the moment is showing an empty dropdown menu. So I thouth maybe I can render the dropdown menu after instead of passing from php code.

Many thanks for your support

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @karibusana ,

    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

  • karibusanakaribusana Posts: 11Questions: 5Answers: 0

    Hi thanks for your reply. I’ve managed to sort this out using column render :) thanks anyway

This discussion has been closed.