Datatables editor: Select options from database

Datatables editor: Select options from database

mcflausemcflause Posts: 10Questions: 0Answers: 0
edited June 2012 in Editor
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.

Replies

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Hi mcflause,

    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
  • mcflausemcflause Posts: 10Questions: 0Answers: 0
    That thread looks like it will take me there. This version of editor is awesome, looking forward to the next release!
This discussion has been closed.