Are you implying that I must use a Kendo Window (not a Kendo Dialog) in order to make a PartialView the contents of a popup?
Hello Marion,
The second approach works for Kendo Dialog on my end. Here is the configuration I have done:
Dialog Configuration:
<div id=
"dialog"
></div>
<script>
var
data;
$(
"#dialog"
).kendoDialog({
open() {
$.ajax({
url:
"/home/loaddialog"
,
method:
'GET'
,
success:
function
(result) {
$(
'#dialog'
).html(result);
</script>
LoadDialog Action:
public
ActionResult LoadDialog()
return
PartialView(
"DialogPartial"
);
Partial view:
<input id=
"color"
value=
"1"
style=
"width: 100%;"
/>
<script>
$(document).ready(
function
() {
var
data = [
{ text:
"Black"
, value:
"1"
},
{ text:
"Orange"
, value:
"2"
},
{ text:
"Grey"
, value:
"3"
}
$(
"#color"
).kendoDropDownList({
dataTextField:
"text"
,
dataValueField:
"value"
,
dataSource: data,
index: 0,
</script>
If this doesn't work for you please send me the project or isolated runnable sample where the issue occurs so I can debug it locally and help you more efficiently.
Regards,
Georgi
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components
built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
Hello Catherine,
It is possible to use html helpers within the content of the Dialog widget. Please take a look at the following demo which demonstrates how to initialize a Kendo TreeView within a Dailog:
https://demos.telerik.com/aspnet-mvc/dialog/treeview-integration
Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components
built from ground-up which
deliver the business app essential building blocks - a grid component,
data visualization (charts) and form elements.
Hi Matthew,
I apologize for the inconvenience. Indeed it should be kendoWindow as in your snippet.
Regards,
Georgi
Progress Telerik