Hello, i have insert a dropdown menu on a jqxgrid, populate by an Json query.
An example is better than word so i capture the behavior and lay it on youtube: https://www.youtube.com/watch?v=3jI9GY-_GjI
As you can see on my first dropdown column every time i clic on it i got the ‘please choose message’ that not appear on my second dropdown column (that’s what i want).
Also the value is automatically change on the first clic i do (after it value stay as default, that’s what i want).
As my english is pretty bad, please look at the video for a better idea of the problem.
Here my cell codes for both dropdown:
{ text: ‘LISTE’, columntype: ‘dropdownlist’, datafield: ‘LISTE’, width: 200
, initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList({ source: dataAdapter, displayMember:”WLdescr”,valueMember: “CODE” }); }
, cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
if (newvalue == “”) return oldvalue;}
},
{ text: ‘STATUT’, columntype: ‘dropdownlist’, datafield: ‘WL_STATUS’, width: 140
, initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList({ source: WLstatusdata, displayMember:”DESCRIPTION”,valueMember: “CODE” });
}
, cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
if (newvalue == “”) return oldvalue;}
},