Editing a jqGrid form with drop-down lists - how to set the initial value

I have an object with three values

  • ID
  • Abbreviation
  • Description

in jqGrid I set the grid to display the abbreviation.

when I click to edit (using the form editing function), I fill out the drop-down menu using the ID / Description parameter values ​​using the editing parameters:

editoptions: { value: "ID1:Description1;ID2:Description2;...;IDN:DescriptionN" }

how can I easily set the selected value in the drop-down list when all that is available to me in the grid is an abbreviation?

+3
source share
2 answers

jqGrid , , , , , jqGrid , ID .

, - colModel . -

{name:'ID', hidden:true...}

, , beforeShowForm , , .

!

+3

, jqGrid, DataURL , select. , .

0

Source: https://habr.com/ru/post/1714426/


All Articles