Hello muqtadir,
Here is a code snippet:
createeditor: function (row, column, editor) {
// assign a new data source to the combobox.
var list = ['Stuttgart', 'Rio de Janeiro', 'Strasbourg'];
editor.jqxComboBox({ autoDropDownHeight: true, source: list, promptText: "Please Choose:" });
editor.on('select', function (event) {
var args = event.args;
if (args && args.item) {
// index represents the item's index.
var index = args.index;
var item = args.item;
// get item's label and value.
var label = item.label;
var value = item.value;
alert("Selected " + value);
}
});
},
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/