How to get select's value in jqGrid when using <select> editoptions on a column

前端 未结 4 1324
别跟我提以往
别跟我提以往 2021-01-02 11:20

I have a couple of columns in jqGrid with edittype=\"select\". How can I read the option value of the value currently selected in a particular row?

e.g.: When I prov

4条回答
  •  醉酒成梦
    2021-01-02 11:24

    You have to set the formatter of the column to 'select'

    Example from the wiki:

    colModel : [ {name:'myname', edittype:'select', formatter:'select', editoptions:{value:"1:One;2:Two"}} ... ]

    See more here jqgridwiki

    I was having the same problem and this worked like a charm

提交回复
热议问题