free-jqgrid / jqGrid

jQuery grid plugin
https://github.com/free-jqgrid/jqGrid
Other
478 stars 196 forks source link

using in inline edittype select always show an undefined option at the end of the list of options #509

Closed felipeblin closed 1 year ago

felipeblin commented 1 year ago

This is the code { name: "{{x}}" , align: 'left', width: 110, label: 'Marca', required: true, searchoptions: { clearSearch: false }, reformatAfterEdit: true, formatter: MarcaFormatter, editable: true, edittype:"select", editoptions:{ value: selectMarcaStr, required: true, defaultValue: 'None', dataInit: function (e) { var v = $(e).val(); } } }

And selectMarcaStr="None:None;5:Almagro;10:Corporativo;9:CoSan;8:Icsa;3:Linderos;1:Matriz;2:Pilares;4:Santiago;7:SDC;6:Sur;"

image

Thank you

felipeblin commented 1 year ago

My fault. Select must not end in ;