dropdown column
dropdown column
dewiazlika
Posts: 5Questions: 2Answers: 0
I need add dropdown as column with small table that it get data from another table like below.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @dewiazlika ,
You can use
columns.render
to create the dropdown in the cell - then it's standard JS on what you put into it.Cheers,
Colin
@colin
Thanks colin I have added " render column" and that's work, but I have other problem. how to get data from other table on rendering value. Is possible add php script in javascript?
my code:
Hi @dewiazlika ,
If it's server based, which I assume it is as you're talking about getting the value with PHP, it would make sense to get the original Ajax request to send that data too - it would avoid unnecessary additional calls and you can send the data in the format that would help the render.
Cheers,
Colin
hey @colin
Yes I use a library https://github.com/emran/ssp in server based.
Yeah I can use ajax request to post PHP data. I try create trigger event click and add ajax request post data.
thanks any way