Telerik Forums
Kendo UI for jQuery Forum
0 answers
65 views
Hello

I want to disable iframe int he js like this


function update_item(tid){


var WINURL = "<%=basePath%>threat/threat!input.action?id="+tid
var edit_window = $("<div/>").kendoWindow({
actions: ["Refresh", "Maximize", "Minimize", "Close"],
animation:false,
height: "300px",
visible: false,
width: "420px",
close: function (e) {
// reset global var 'global1' and destroy window
this.destroy();
},
iframe:false,
content:WINURL
}).data("kendoWindow");
 
edit_window.center();
edit_window.open();

}
 

but , I use chrome I still find the page I load into the windows still appear in a <iframe> and add the <html><head><boday> for me again. How can I solve this problem ? 

 
Neo Wong
Top achievements
Rank 1
 asked on 31 May 2012
0 answers
28 views
When I add multiple windows to a page they are all created in the same spot. Is it possible to lay out the windows left to right ?
Volkan
Top achievements
Rank 1
 asked on 17 May 2012
0 answers
28 views
Hello,

when we open the window page scrolling position was in middle but after maximize and minimize the window page is scroll up, is there any solution in window ui like after minimize the window page set scrolling position as before maximize the window.

thanks
Wajahat
wajimam
Top achievements
Rank 1
 asked on 16 May 2012
0 answers
75 views
Every time I execute a javascript function like clean form or ajax post, browser automatically reload page. I test to use alert function with return false, it's worked but with form don't.

I discovered what happened, I error in javascript makes page reload!
Claudio
Top achievements
Rank 1
 asked on 04 May 2012
0 answers
120 views
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;
}
Joshua
Top achievements
Rank 1
 asked on 20 Apr 2012
0 answers
25 views
Hello,

I have a code like this:
<div id="wnd1">
    <div>Click me!</div>
    <script type="text/javascript">alert('executed 1');</script>
</div>
 
<script type="text/javascript">
    (function ($) {
        $("#wnd1").kendoWindow({
            height: "500px",
            width: "400px",
            modal: true,
            draggable: true,
            resizable: false,
            visible: false
        });
    })(jQuery);
</script>

And in this case alert is executed twice. First time because of initial script rendering and second when window is initialized.
Should it be such case and how to prevent it?

Also I can see this window during the second alert, is it ok that window shows and hides when "visible: false"?

Vladimir
Volodymyr Oliinyk
Top achievements
Rank 1
 asked on 13 Apr 2012
0 answers
68 views
Is there a way that I can load a PDF into a window?
Rob
Top achievements
Rank 1
 asked on 29 Mar 2012
0 answers
54 views
Hi,

Below is the code where i use kendo window to show a window where user can enter email address and on clicking send it fires c# button click event.
But that doesn't happen, the button click event doesn't fires. What could be the issue??
Also to make avoid other problems, i have set the causesvalidation to false.

<div id="Emailwindow">
        <div id="mainPart">
        <fieldset>
        <legend><asp:Literal ID="ltrlLegendText" runat="server"></asp:Literal></legend>
        <table cellspacing="10">
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="lblmsgtoShow" EnableViewState="false" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <span class="redstar">*</span>
                    <asp:Label ID="lblEmail" runat="server" Text="Your Email ID:">
                    </asp:Label>
                </td>
                <td><asp:TextBox ID="txtSendEmail" EnableViewState="false" Width="250px" runat="server"></asp:TextBox></td>
                     
            </tr>
            <tr>
                <td></td>
                <td><span id="EmailMsg" enableviewstate="false" runat="server"></span></td>
            </tr>
            <tr>
                <td></td>
                <td align="left">
                    <span class="mandatoryMsg">Fields marked (<span class="redstar">*</span>) are mandatory</span>
                </td>
            </tr>
            <tr>
                <td></td>
                <td align="right">
                    <asp:Button ID="btnSendEmail" CausesValidation="false" runat="server"
                        Text="Send" Width="80px" onclick="btnSendEmail_Click" />
                </td>
            </tr>
        </table>
        </fieldset>
    </div>
Rohit
Top achievements
Rank 1
 asked on 26 Mar 2012
0 answers
39 views
The "close" picture in my IE8 browser has a bad look, see screenshot attached.
jc mag
Top achievements
Rank 1
 asked on 14 Mar 2012
0 answers
51 views
 hi,


I am using kendo template to display some fields data from the datasource into a table. I have a hyperlink on one of the elements that pops up a window.
Am able to pull the data propery, but the popup window doesnt popup- instead displays on same page at the top.
following is my code inside the td that has a link
<td> <a href="javascript:toggle5();" id="window5"  class="k-group Property " >
       #=name # 
    </a> </td> What can i change to make the window popup. thanks in advance.
         
Rahul
Top achievements
Rank 1
 asked on 03 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?