On my page I have about three different kendoDialog control that has long html content. The html content also need to get converted to different kendo controls like kendoEditor and kendoUpload. I wanted to see what other users do for this and see if they use a html page as a type of template
dialogMultipleChoice.kendoDialog({
width: "450px",
title: "Multiple Choice",
closable: false,
modal: false,
content: "<div class='form- group'><label>Label (Question)</label><textarea id='editor' rows='10' cols='30'></textarea></div><div class='form- group'><label>Image</label><input name='upImport' id='upImport' type='file' /></div><div class='form- group'><label>Choices</label><select id='selectanswer' multiple='multiple' data-placeholder='Select answer...'></div>",
actions: [
{ text: 'Cancel' },
{
text: 'Save',
primary: true,
action: function (e) {
saveMultipleChoice();
},
}
],
close: onClose
});
$("#editor").kendoEditor();
$("#upImport").kendoUpload();