Home > front end >  Editoption jqGrid framework according to the key value, don't show the value value
Editoption jqGrid framework according to the key value, don't show the value value

Time:10-18

With jqGrid wrote a table, used to put something retrieved from the database, and then you can edit, delete, but why payment_type drop-down box shows the key value does not show the real value

JQuery (grid_selector). JqGrid ({
SubGrid: true,
SubGridOptions: {
Minusicon: "ace - icon fa fa - minus center bigger - 110 blue",
Openicon: "ace - icon fa fa - chevron - right center orange"
},

Data: grid_data,
Datatype: "local",
Height: 420,
ColNames: [' and 'operation person ID', 'order number', 'payment types',' value ', 'taobao ID', 'operation time, modified time,' uuid],
ColModel: [
{name: 'myac, index: "', width: 80, fixed: true, sortable: true, resize: false,
The formatter: 'actions',
Formatoptions: {
Keys: true,
DelOptions: {recreateForm: false, beforeShowForm: beforeDeleteCallback},
}
},
{name: 'user_id' index: 'user_id', width: 50, the editable: false, editoptions: {size: "20", maxlength: "30"}},
{name: 'order_num, index:' order_num, width: 50, the editable: true, editoptions: {size: "20", maxlength: "30"}},
{name: "payment_type", the index: 'payment_type, width: 50, the editable: true, edittype: "select", editoptions: {value: FE: praise cashback; "" IN: return freight "}},
{name: 'price index:' price, width: 50, the editable: true, editoptions: {size: "20", maxlength: "30"}},
{name: 'taobao_id, index:' taobao_id, width: 50, the editable: true, editoptions: {size: "20", maxlength: "30"}},
{name: 'create_time, index:' create_time, width: 50, the editable: false, editoptions: {size: "20", maxlength: "30"}},
{name: "modify_time, index: 'modify_time, width: 50, the editable: false, editoptions: {size:" 20 ", maxlength: "30"}},
{name: uuid, index: 'uuid, width: 50, the editable: false, hidden: true, editoptions: {size: "20", maxlength: "30"}}
],

Viewrecords: true,
AltRows: true,
Multiselect: true,
Multiboxonly: true,
LoadComplete: function () {
Var table=this;
SetTimeout (function () {
}, 0);
},
Editurl: "http://47.103.19.180:8080/fanxian/updateOrDelete.action",
Caption: "order list as follows"
});
  • Related