Hi,
I'm trying to add a group in my listbox.
But seems my code below is not working.
It only shows unidentified.
$("#optional").kendoListBox({
connectWith: "selected",
dataTextField: "Name",
dataValueField: "Name",
selectable: "multiple",
template: myTemplate,
groupable: true,
toolbar: {
tools: ["transferTo", "transferFrom", "transferAllTo", "transferAllFrom"]
},
dataSource: {
transport: {
read: {
url: "getmember" + id,
dataType: "json"
},
schema: {
model: {
fields: {
Name
: { type: "string" },
Id: { type: "string" },
Location: { type: "string" }
}
}
}
},
group: {
field: "Location"
}
},
columns: [
{
field: "Name",
title: "Name"
},
{
field: "Location",
title: "Location"
}
]
});