Currently, I am facing an issue with displaying the content of a JSON file within a modal window. All I can manage to do is display the file name as a link, but what I really want is to display the actual content of the file. Do you have any ideas on how I can achieve this? Below is the code I am currently using.
$("#adhocSearchKendoGrid").on("click", "a.open-modal", function() {
var dataItem = grid.dataItem($(this).closest("tr"));
$("<div></div>")
.appendTo($("#win"))
.kendoWindow({
title: "Editing item #" + dataItem.filename,
width: "40%",
modal: true,
position: {
top: 30
}
})
.data("kendoWindow")
.content("<a target='_blank' class='file-view'>" +dataItem.filename+"</a>");
//.maximize();
});