Hi, i have a problem, when i select another item in the grid when editing a item with the drop down list the “cellendedit” and “cellvaluechanging” are not call.. can you help?
The code:
$(“#jqxFoodTypeGrid”).jqxGrid(
{
width: 1248,
height: 630, //’100%’,
showfilterrow: true,
sortable: true,
altrows: true,
altstart: 0,
editable: true,
filterable: true,
theme: ‘mybag’,
source: dataFoodTypeAdapter,
selectionmode: ‘singlecell’,
altrows: true,
editmode: ‘dblclick’,
columns: [
{ text: ‘Food Type’, filtertype: ‘number’, datafield: ‘FoodTypeId’, width: 200,
validation: function (cell, value) {
if (value == ”) {
return { result: false, message: “The value is empty!” };
}
return true;
}
},
{ text: ‘WB / NB’, datafield: ‘WbOrNbString’, filtertype: ‘checkedlist’, width: 1028, columntype: ‘dropdownlist’,
createeditor: function (row, column, editor) {
// assign a new data source to the dropdownlist.
var list = [‘NB’, ‘WB’];
editor.jqxDropDownList({ source: list });
},
// update the editor’s value before saving it.
cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
// return the old value, if the new value is empty.
if (newvalue == “”) return oldvalue;
}, createfilterwidget: function (column, columnElement, widget) {
widget.jqxDropDownList({ dropDownWidth: 1020 });
}, cellclassname: ‘GridItemsFoodTypeCell’
}
]
});