This is a migrated thread and some comments may be shown as answers.

Window not using iframe

0 Answers 120 Views
Window
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 20 Apr 2012, 10:33 PM
I want to open a window within an iframe that because it needs its own print.css. 

I don't know why, but I do not think it is actually using the iframe as it always changes the css in the main window. Am I just doing something wrong?

I am trying to use the following code:
function ShowKendoIFrameWindow(element, data) {
    var title = $(element).attr("WindowCaption");
    var url = $(element).attr("WindowURL");
    $("<div />").kendoWindow({
        iframe: true,
        animation: {
            open: {
                effects: { fadeIn: {} },
                duration: 200,
                show: true
            },
            close: {
                effects: { fadeOut: {} },
                duration: 200,
                hide: true
            }
        },
        content: { type: "POST", url: url, data: data },
        title: title,
        draggable: true,
        modal: true,
        resizable: false,
        scrollable: false,
        refresh: function () { this.center(); }
    }).data("kendoWindow").center().open();
    return false;
}

No answers yet. Maybe you can help?

Tags
Window
Asked by
Joshua
Top achievements
Rank 1
Share this question
or