Need to add dropdown as a column loading static data
Need to add dropdown as a column loading static data
suma k
Posts: 4Questions: 1Answers: 0
I am new to data tables.I would like to add a dropdown with two values open,close and based on selected values the following changes will happen.Please help me with this
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @suma k ,
Would something like this do it?
Cheers,
Colin
hi colin,
No.I would like to add dropdown in the data as we enter data for other columns in the datatable
ex-:name|age|dropdown column
sam|12|dropdown with values
marry|14|dropdown with values
Maybe this example will help get you started. Please post if you have any questions.
http://live.datatables.net/yogayixa/1/edit
Kevin
Perfect Example.
Thanks kevin.
As you can see in my code iam trying to create a link for the data inside the dropdown but it is coimng as a data not the link.Not sure why
{
"data": "EnableReopenAction",
render: function (data, type, row) {
if (data == true) {
Not sure you can have links in the select options. This SO thread may help.
Kevin