The grid defines the field as:
colModel: [
{name:'Catalogue', index:'catalogue.Catalogue', width:100, align:"left",
editable:true, edittype:'select',
editoptions: {dataUrl:'xtras/selectOptions.php?optionFunction=CatalogueSelect'}
},
The build grid with inline edit html code shows:
<select class="editable" id="23368_Catalogue" name="Catalogue" size="1">
<option value="0">Select</option>
<option value="2064">KSCOPE370</option>
<option value="2063">KSCOPE369</option>
...
</select>
I'm expecting the grid to pass to the server values of the select
such as [Catalogue] => 2064
, yet the grid sends to server:
[Catalogue] => KSCOPE370
If I add to column definition formatter:'select',
- it sends the correct value of 2064
, however if I attempt the inline edit, then cancel it - the visible value of the Catalogue
field disapears:
Was:
Catalogue ISRC ...
KSCOPE370 GBCQV0200197 .....
After cancel editing, becomes:
Catalogue ISRC ...
GBCQV0200197 .....
What is the correct way to handle this?