New to Kendo UI for jQueryStart a free 30-day trial

Content

methods

Gets or set the content of a dialog. Supports chaining when used as a setter.

Returns:String

The current dialog content, if used as a getter. If used as a setter, the method will return the dialog object to support chaining.

<div id="dialog">foo</div>
<script>
$("#dialog").kendoDialog({
  title: "Kendo Dialog Component",
});
var dialog = $("#dialog").data("kendoDialog");
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dialog.content()); // logs "foo"
</script>
<div id="dialog"></div>
<script>
$("#dialog").kendoDialog({
  title: "Kendo Dialog Component"
});
var dialog = $("#dialog").data("kendoDialog");
dialog.content("Kendo UI all the things!");
</script>
Not finding the help you need?
Contact Support