Datatables editor: Select options from database
Datatables editor: Select options from database
Is it possible to fill the select options for the datatables editor from the database?
[code]
"ipOpts": [
{
"label": "Option1",
"value": "0"
},
{
"label": "Option2",
"value": "1"
}
]
[/code]
I have been playing around trying to figure it out but not much luck. Anyone have any luck on filling the select options from the db?
Thanks.
[code]
"ipOpts": [
{
"label": "Option1",
"value": "0"
},
{
"label": "Option2",
"value": "1"
}
]
[/code]
I have been playing around trying to figure it out but not much luck. Anyone have any luck on filling the select options from the db?
Thanks.
This discussion has been closed.
Replies
Have a look at this thread which discusses the topic of getting those value options dynamically: http://datatables.net/forums/discussion/9899 .
Editor 1.1 is going to add a new option to make the options dynamic as well, so they can be regenerated at any time.
Regards,
Allan