Hi,
I have a grid that uses in-line editing.
i need to add a dropdownlist (with datasource) to one of the columns when it's being edited.
Has anyone done this yet?
Please help me out.
I've tried a few ways.
I thought this would work:
in my column definitions:
columns: [
...
{ field: "AdvertType", width: "100px", editor: advertTypeEditor },
later:
function advertTypeEditor(container, options) {
$('<input name="' + options.field + '" id="Adverttypes" >').appendTo(container);
}
and then this:
$(".Adverttypes").kendoDropDownList({
dataTextField: "Adverttype",
dataValueField: "ID",
dataSource: {
transport: {
read: "data/adverttypesfordropdowns.php"
},
schema: {
data: "data"
}
}
});
But it's not working.
Please advise me....
Thanks,
Vauneen
I have a grid that uses in-line editing.
i need to add a dropdownlist (with datasource) to one of the columns when it's being edited.
Has anyone done this yet?
Please help me out.
I've tried a few ways.
I thought this would work:
in my column definitions:
columns: [
...
{ field: "AdvertType", width: "100px", editor: advertTypeEditor },
later:
function advertTypeEditor(container, options) {
$('<input name="' + options.field + '" id="Adverttypes" >').appendTo(container);
}
and then this:
$(".Adverttypes").kendoDropDownList({
dataTextField: "Adverttype",
dataValueField: "ID",
dataSource: {
transport: {
read: "data/adverttypesfordropdowns.php"
},
schema: {
data: "data"
}
}
});
But it's not working.
Please advise me....
Thanks,
Vauneen