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

window from grid just open first time

0 Answers 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 26 Jul 2012, 01:02 PM
Hi..
I'm trying to open a window (with content from another php page ) from a grid .. the window opens, but only once ... when I try to open again does not work ... this is the code I'm using:

....line of grid calling a custom command....
{command: { text: "Dados de Registro", click: ShowPop}, title: " ", },

...the function to open the window...
function ShowPop()

{var myWin = $("#window");
     if (!myWin.data("kendoWindow")) {
            // window not yet initialized
            myWin.kendoWindow({
                content: 'elt.php',
                title: "elt",
                iframe: true,
                width: "800px",
                height: "400px",
                scrollable: false,
                visible: false
             }).data("kendoWindow").center().open();
     }
   
}

i don't know what to do...

tks

No answers yet. Maybe you can help?

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