Hello
I'm using an editable GRID with CREATE toolbar. I would like to customise my editable pop-up to add a kendoDropDownList for selecting a element in a list.
In my exemple I have a grid with "accessoires" I can ADD new one or DELETE existing ones
If I create I want to choose the new element in a kendoDropDownList NOT in TYPE=INPUT
How to do this ?
Here is the code of my GRID
//Grille des accessoires
$("#gvAccessoires").kendoGrid({
columns: [
{
field: "LibelleObj",
title: "Accessoire"
},
{ command: [{ name: "destroy", text: "Supprimer", visible: function (dataItem) { return !dataItem.IsPublie } }], title: " ", width: "250px" },
],
editable: {
mode: "popup",
window: {
title: "Saisie des accessoires",
width: 600
}
},
toolbar: ["create"],
edit: function (e) {
???? how to add here the kendoDropDownList
},
save: function (e) {
Accessoires.add(new Accessoire(false, e.model));
},
remove: function (e) {
_.forEach(selectedOP.Accessoires, function (item) {
if (item.idObj == e.model.idObj) Accessoires.remove(item);
});
}
});
var ds3 = new kendo.data.DataSource({
data: Accessoires,
schema: {
model: {
id: "idObj",
fields: {
id: { editable: false, nullable: true },
LibelleObj: { validation: { required: true } },
}
}
}
});
$("#gvAccessoires").data("kendoGrid").setDataSource(ds3);
Thank you