You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I press Edit and open alt-editor then col1 can be changed selecting from the following possible options:
options: { "b" : "A Text (b)", "a" : "B Text (a)", "2" : "C Text (2)", "1" : "D Text (1)"}
Unfortunately the order (sort) of the elements in the combo box in altEditor-edit-form is not good.
The elements are ordered as follows:
<select class="form-control" id="col1" name="Column 1" placeholder="Column 1" data-special="" data-errormsg="" data-uniquemsg="" data-unique="false" required="">
<option value="1">D Text (1)</option>
<option value="2">C Text (2)</option>
<option value="b">A Text (b)</option>
<option value="a">B Text (a)</option>
</select>
The system sorts them out as follows:
Sorts by value and puts first (ONLY integer values).
The rest of the elements (string keys) are not sorted The are just placed as they are ordered in the options {} definition of the column above:
I would like to:
Disable sorting the elements with integer value and have the elements as ordered in options {} definition
OR
Sorts the elements in the select box alphabetically by name (A Text (b), B Text (a), C Text (2), D Text (1))
The required sorting is in the combo box from the altEditor-edit-form is:
<option value="b">A Text (b)</option>
<option value="a">B Text (a)</option>
<option value="2">C Text (2)</option>
<option value="1">D Text (1)</option>
Thanks a lot,
Stan
The text was updated successfully, but these errors were encountered:
Dear all,
I have the following code - A DataTable including one column (type=select) which can be edited using altEditor edit form.
When I press Edit and open alt-editor then col1 can be changed selecting from the following possible options:
options: { "b" : "A Text (b)", "a" : "B Text (a)", "2" : "C Text (2)", "1" : "D Text (1)"}
Unfortunately the order (sort) of the elements in the combo box in altEditor-edit-form is not good.
The elements are ordered as follows:
The system sorts them out as follows:
I would like to:
OR
The required sorting is in the combo box from the altEditor-edit-form is:
Thanks a lot,
Stan
The text was updated successfully, but these errors were encountered: