Datatables Editor not selecting value from dropdown based on data i get from server side.
Datatables Editor not selecting value from dropdown based on data i get from server side.

I am using datatables editor dropdown .Followong code i am using to define dropdown.
{
"label": "Edit Status",
"name": "<?php echo $table; ?>.Status",
"type": "select",
"ipOpts": [
{ "label": "APPROVAL 1", "value": "APPROVED 1" },
{ "label": "APPROVAL 2", "value": "APPROVED 2" },
{ "label": "APPROVAL 3", "value": "APPROVED 3" },
{ "label": "APPROVAL 4", "value": "APPROVED 4" },
{ "label": "GREEN-APPROVED", "value": "green" },
{ "label": "RED-UNAPPROVED", "value": "red" },
{ "label": "YELLOW-SUBMITTED", "value": "yellow" },
{ "label": "ORANGE-IMPORTED", "value": "orange" },
{ "label": "BLUE-PROTOTYPE", "value": "blue" },
{ "label": "BLACK-OBSELETE", "value": "black" }
]
}
But it always select first option regardless of the value.
How could i make it where it select dropdown option based on value we get in ajax data.
Thanks
Answers
Please take a look at this: https://editor.datatables.net/examples/advanced/joinArray
In the server script you see the options instance that retrieves the options for "users.site" from the server.