I am loading kendo window during runtime using javascript and window configurations like title, height, width, url everything coming from JSON object.
Same like I am trying to pass the maximize, minimize, and refresh buttons visibility configuration from JSON.
Not able to handle buttons configuration the below code.
Please let me know any other choice to handle this?
Sample code:
var jsonDoc = {
widget: [{name:"W1",
title: "W1",
height: 200,
width: 320,
url:"http://jsbin.com"
maximize:true
refresh:true
minimize:false }]
};
for (var i = 0, sl = jsonDoc.widget.length; i < sl; i++)
{
var panelname;
panelname = "#panel" + i;
$(panelname).kendoWindow(
{
title: jsonDoc.widget[i].title,
height: jsonDoc.widget[i].height,
width: jsonDoc.widget[i].width,
actions: [????],
content: jsonDoc.widget[i].url
});
$(panelname).parents('.k-window').css('top', '45%');
}