Help me ! I hava a problem with the editor for datatables.
Help me ! I hava a problem with the editor for datatables.
This is an example to use select in the editor, but I don't want to write the string fixed in the page, I want to a dynamic select, means I want the ipOpts value is from server-side, like: json. What should I do ?
{
"label": "Priority:",
"name": "priority",
"type": "select",
"ipOpts": [
{ "label": "1 (highest)", "value": "1" },
{ "label": "2", "value": "2" },
{ "label": "3", "value": "3" },
{ "label": "4", "value": "4" },
{ "label": "5 (lowest)", "value": "5" }
]
{
"label": "Priority:",
"name": "priority",
"type": "select",
"ipOpts": [
{ "label": "1 (highest)", "value": "1" },
{ "label": "2", "value": "2" },
{ "label": "3", "value": "3" },
{ "label": "4", "value": "4" },
{ "label": "5 (lowest)", "value": "5" }
]
This discussion has been closed.
Replies
I think we both are facing the same situation :D, you may want to follow this discussion if you wish
http://www.datatables.net/forums/discussion/9899/datatable-editor-form-select-ipopts-dynamic-values/p1
hope we can get a way around it.
cheers,
GH