I have 2 questions.
Question1) Is it possible to initialize/widgetify kendo window content
eg
var mywindow = $("<div/>").kendoWindow({
width: "300px",
height: "200px",
title: "Some title",
modal: true
});
var kendoWindow = mywindow.data("kendoWindow");
var mycombo = "<input id="comboBox"/>";
var windowcontent = kendoWindow.content(_mycombo);
//can i make mycombo into widget ...code below doesnt work gives a jquery error
$(windowcontent).kendoComboBox({
dataTextField: "text",
dataValueField: "value",
dataSource: [
{ text: "Item1", value: "1" },
{ text: "Item2", value: "2"}]
});
Question2) If I have this code
var myoptions = {a:"some text", b:"more text"};
var mywindow = $("<div/>").kendoWindow({
width: "300px",
height: "200px",
modal: true,
title: myoptions.a,
content:"test.html"
});
How do i pass 'myoptions' object into test.html? (does it have to be a global variable?)
thanks
kashim
Question1) Is it possible to initialize/widgetify kendo window content
eg
var mywindow = $("<div/>").kendoWindow({
width: "300px",
height: "200px",
title: "Some title",
modal: true
});
var kendoWindow = mywindow.data("kendoWindow");
var mycombo = "<input id="comboBox"/>";
var windowcontent = kendoWindow.content(_mycombo);
//can i make mycombo into widget ...code below doesnt work gives a jquery error
$(windowcontent).kendoComboBox({
dataTextField: "text",
dataValueField: "value",
dataSource: [
{ text: "Item1", value: "1" },
{ text: "Item2", value: "2"}]
});
Question2) If I have this code
var myoptions = {a:"some text", b:"more text"};
var mywindow = $("<div/>").kendoWindow({
width: "300px",
height: "200px",
modal: true,
title: myoptions.a,
content:"test.html"
});
How do i pass 'myoptions' object into test.html? (does it have to be a global variable?)
thanks
kashim