Hi,
I am new to Jqxgrid.using jqxgrid and dropdownlist inside cell.
the dropdown shows the options only when click on cell and not retains the selected value.Please guide me to fix above issues
code sample: column definition as follows
{
text: ‘Level’,
editable: true,
columntype: ‘dropdownlist’,
datafield: ‘ELevel’,
width: “40%”,
resizable: true,
createeditor: function (row, column, editor) {
var list = [{ LevelId: 1, ELevel: ‘Level1’ }, { LevelId: 2, ELevel: ‘Level2’ }, { LevelId: 3, ELevel: ‘Level3’ }];
editor.jqxDropDownList({ autoDropDownHeight: true, source: list, displayMember: ‘ELevel’, valueMember: ‘LevelId’ });
},
// TRIED TO ASSIGN VALUE ALSO
cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
$(“#grdList”).jqxGrid(‘setcellvalue’, row, ‘ELevel’, newvalue);
if (newvalue == “”) return oldvalue;
}
},