Dear Telerikļ¼
I use grid in my project and would like to provide multi-select options in user-editing. But I got some strange issue using multi-select.
In my project I use multi-select like this.
I wonder where I got wrong and it appeared with a strange <input> and a <span> unexpected. Just like the image.
I'd like to ask you that how can I use multi-select to get user input in dropdown list? I checked the demos but only found demo for <select> tag or for MVC usage.
I'm looking forward for your reply.
I use grid in my project and would like to provide multi-select options in user-editing. But I got some strange issue using multi-select.
In my project I use multi-select like this.
$(
"#grid"
).kendoGrid({
dataSource: dataSource,
pageable:
true
,
resizable:
true
,
sortable:
true
,
filterable:
true
,
toolbar: [
"create"
],
save:
function
(e) {
e.model.dirty =
true
;
},
detailTemplate: kendo.template($(
"#template"
).html()),
detailInit: detailInit,
columns: [
//{ field: "id", title: "id Name" },
{ field:
"Server_Name"
, title:
"Server Name"
, width:
"150px"
},
{ field:
"Server_IP_Address"
, title:
"Server IP Address"
, width:
"120px"
},
{ field:
"Data_Center_City"
, title:
"City"
, width:
"56px"
},
{ field:
"Data_Center_Location"
, title:
"Data Center Location"
, width:
"156px"
},
{ field:
"Server_Type"
, title:
"Server Type"
, width:
"100px"
},
{ field:
"Server_Instance"
, title:
"Server Instance"
, width:
"120px"
},
{ field:
"Environment"
, title:
"Environment"
, width:
"100px"
, editor: appDropDownEditor },
{ command: [
"edit"
,
"destroy"
], title:
" "
, width:
"170px"
}],
editable:
"inline"
});
}
function
appDropDownEditor(container, options) {
$(
'<input required data-bind="value:'
+ options.field +
'"/>'
)
.appendTo(container)
.kendoMultiSelect({
dataTextField:
"text"
,
dataValueField:
"text"
,
dataSource: [ { text:
"PRD"
}, { text:
"QA"
}, { text:
"DEV"
} ]
});
}
I'd like to ask you that how can I use multi-select to get user input in dropdown list? I checked the demos but only found demo for <select> tag or for MVC usage.
I'm looking forward for your reply.