How do I create a DropDownList with a blank item as well as multi column template?
The above produces the error Uncaught ReferenceError: TicketTypeDescription is not defined.
If I remove the optionLabel then it displays fine, but without the empty entry.
If I remove the template then it displays fine, but without multi column.
var ticketType = $("#TicketType").kendoDropDownList
({
optionLabel: " ",
dataTextField: "TicketTypeName",
dataValueField: "TicketTypeId",
dataSource:
{
serverFiltering: true,
type: "jsonp",
transport:
{
read:
{
url: "../Service/IncidentManagement.asmx/GetTicketTypeList",
contentType: "application/json; charset=utf-8",
type: "POST"
}
},
schema:
{
data: "d"
}
},
template: "<
div
><
span
>${TicketTypeName}</
span
><
span
>${TicketTypeDescription}</
span
></
div
>"
}).data("kendoDropDownList");
The above produces the error Uncaught ReferenceError: TicketTypeDescription is not defined.
If I remove the optionLabel then it displays fine, but without the empty entry.
If I remove the template then it displays fine, but without multi column.