This is a migrated thread and some comments may be shown as answers.

Grid with kendoDropDownList (group and filter)

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 06 Jul 2015, 09:37 AM

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.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 08 Jul 2015, 08:15 AM

Hello Richard,

 

There was a bug in the DropDownList widget which causes this behavior. It was addressed a couple of weeks ago.

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or