Inline editor and selectize saved value
Inline editor and selectize saved value
I'm using the inline editor with a selectize field. When tabbing into the field and displaying the DDL everything works as expected. However, when existing the field (which fires the automatic submit) the saved value is displayed in the grid and not the text.
You can see below that the select list contains the correct values and the resulting display in the cell should be "Project 10"
<select id="DTE_Field_ProjectId" tabindex="-1" class="selectized form-control" style="display: none;">
<option value="10" selected="selected">Project 10</option>
</select>
Answers
Hi,
What you need to do here is basically to have both the label that you want to show in the DataTable and the value that you want Editor to edit in the data source object for the row. That way you can instruct Editor to edit the value while DataTables displays the label. When the edit is complete you need the server to include both pieces of information in the data it sends back for the row.
You can see that in action in this example when the join field uses both the label and its value.
Regards,
Allan