Hi,
I have Grid with DropDown list. DropDown list has attributes filter and group. After selecting some value in DropDown list, attribute "group" causes "undefined". Here is my code:
...... kendoGrid({
dataSource: {
data: data.obmedzenia,
schema: {
model: {
fields: {
obmedzenie: {
defaultValue: {
nazov: "(§ 51 ods. 3 písm)",
kod: "51O3A"
}
}
}
}
}
},
sortable: false,
filterable: false,
<c:if test="${editT_readF}">
editable: {
confirmation: false
},
toolbar: [{name: "create", text: "<spring:message code='button.create'/>"}],
</c:if>
columns: [
{
field: "obmedzenie",
title: "<spring:message code='opatrenia'/>",
template: "#=obmedzenie.nazov#",
editor: zoznamDropDownEditor
},
{
field: "poznamka",
title: "<spring:message code='poznamka'/>"
},
<c:if test="${editT_readF}">
{command: "destroy", title: " ", width: "135px"}
</c:if>
]});
function zoznamDropDownEditor(container, options) {
$('<input data-text-field="nazov" data-value-field="kod" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
dataSource: {
transport: {
read: {
url: "<c:url value="/api/pripad/zoznam/obmedzeni" />",
serverFiltering: true,
cache: false
}
},group: { field: "nazovSkupiny" }
},
filter: "contains",
dataTextField: "nazov",
dataValueField: "kod"
});
}
I forgot something? An attribute?
Thank you.