Telerik Forums
Kendo UI for jQuery Forum
0 answers
45 views
How to add 'Menu' next to title of 'Window' Component or on hover of custiom icon how to populate a menu with 4 items

Thanks,
Chetan
Chetan
Top achievements
Rank 1
 asked on 19 Sep 2012
0 answers
56 views
Hi, i'm from Peru its my english is poor.
But, how puts name in iframe for window, whit from code:

     var onClose = function() {
         undo.show();
    }

    function onRefresh(e) {

    }

var window2 = $("#window2"),
        undo2 = $("#node_pjpersons").bind("dblclick", function(){
                    window2.data("kendoWindow").center().open();
        });

    if (!window2.data("kendoWindow")) {
        window2.kendoWindow({
            actions: ["Refresh", "Close"],
            width: "615px",
            height:"600px",
            title: "Mis Proyectos",
            visible:false,
            content: "/node/personal-project/",
            resizable: false,
            refresh: onRefresh,
            iframe: true,
            close: onClose
        });
    }

Jorge
Top achievements
Rank 1
 asked on 14 Sep 2012
0 answers
40 views
Hi,

I'm loading the content of a window by using the refresh method with a URL. Is there a way to find out which URL the content was really fetched from (if it is redirected)?

I know that I could just check the content and look for some unique element to discern which page was loaded if I know the content, but this is not always feasible.
Nocklas
Top achievements
Rank 1
 asked on 12 Sep 2012
0 answers
30 views
Nevermind got it working.
Tim
Top achievements
Rank 1
 asked on 11 Sep 2012
0 answers
60 views
I have four Kendo windows in my web page.
I am loading four windows during run time using JQuery.
Same time i need to indicate drag able area for the four windows.  
As per our requirement, the windows should drag limited area in web page and window docking system.
Please instruct me, there is any way to do this?

Prakash
Top achievements
Rank 1
 asked on 08 Sep 2012
0 answers
184 views
Hello,

Can anyone confirm the kendoWindow custom action, as shown below, triggers the browser window's popstate event handler?

 $("#window").kendoWindow({
      actions
: ["Custom", "Minimize", "Maximize", "Close"],
      title
: "Window Title"
 
}).data("kendoWindow").wrapper.find(".k-custom").click(function(e) {
      alert
("Custom action button clicked");
      e
.preventDefault();
 
});

It does in my case.  Here's the relevant popstate code:

    
function popStateHandler(e) {
 
    var State = e.state;
 
    if (State != null) {
 
        console.log(State);
 
        switch (State.stateTitle) {
 
            case "Landing Page":
 
                console.log('transitioning to landing page ...');
 
                // show the content div and hide the hide the login panel
                //
                Transitions.PrimaryElementTransitions.HideLoginPanel();
 
                break;
 
            default:
 
                break;
 
        } // end switch ...
 
    } else if (window.processingLogin == true) {
        console.log('Processing login flag is true.');
 
        window.ProcessingLogin = false;
    } else {
        console.log('transitioning to login state ...');
 
        // show the login panel and hide the content div
        //
        Transitions.PrimaryElementTransitions.ShowLoginPanel();
    }
}
 
// Attach the window.history popstate event handler defined above.
//
window.addEventListener("popstate", popStateHandler, false); // end function definition and addEventListener method invocation ...

Thanks,

Dan
Daniel
Top achievements
Rank 1
 asked on 04 Sep 2012
0 answers
175 views
Hello 

What is the different between Content and LoadContentFrom properties of Kendo UI's Window contorl.  I have two button in Home page.  Each button have separate window control to call corresponding partial view.  If i use content method, the customer index loaded initially, ie at the time of page load.  If i use LoadContentFrom, the DOM controls gets loaded when the window gets visible.  

For example, 
@(Html.Kendo().Window()
        .Name("CustomerWindow")
        .Title("Customer")
        .Content(@<text>
    @Html.Partial("../Customer/Index")
    </text>)
        .Draggable()
        .Resizable()
        .Width(736)
        .Visible(false)
    )

and 

@(Html.Kendo().Window()
        .Name("CustomerWindow")
        .Title("Customer")       
            .LoadContentFrom("../Customer/Index")
        .Draggable()
        .Resizable()
        .Width(736)
        .Visible(false)
        .Modal(true)
    )

I think its lazy loading concept,  but I don't know the exact difference. 


thanks
Santhosh
Santhosh
Top achievements
Rank 1
 asked on 31 Aug 2012
0 answers
100 views
Hello

I have a window control to get the customer details from user.   Along with i have search button, to find out existing customer details for editing.  For search, a separate kendo window control is used by showing the list of customer in the grid.  

Here how to pass the customer id from search window to customer window after selecting the particular customer in grid view.  ie, how to get the customer id from child window to parent window.

thanks & regards
Santhosh
Santhosh
Top achievements
Rank 1
 asked on 24 Aug 2012
0 answers
85 views

I have the frame structure below:

<frameset rows="*" frameborder="NO" framespacing="0" border="0">
<frame src="principal.aspx" id="main">
</ frameset>

principal.aspx

<script>
var window = $ ("#window"). kendoWindow ({
         width: "50%"
         height: "50%"
         modal: true,
         visible: false,
         actions: ["Refresh", "Maximize", "Close"]
     }). date ("kendoWindow");
</ script>

<iframe SRC="URL" id="frmConteudo"> </ iframe>
<div id="window"> </ div>

Now I have the problem. I'm inside the frmConteudo and want to access the div window. I can access the div window without problems this way:

$ ("#window", frames["main"].document)

However the need to access. Date ("kendoWindow") and the same is void of the two forms below:

var frame = frames["main"].document;
$
("#window", frame).data("kendoWindow");
$
("#window", frame).data(frame, "kendoWindow");

Any idea?

Fabricio
Top achievements
Rank 1
 asked on 22 Aug 2012
0 answers
56 views
It seems that window is added to the body tag and positioned absolutely with high z-index.

This limits how it can be used within a container if the purpose is to use it as a non-modal window.

Correct me If I am wrong, but it seems that absolute positioning and high z-index are only needed for modal windows and not for non-modals?

I am not sure if this is a limitation or by design. Either way it would be nice to use the window widget in non modal context which respects parent container boundaries and is positioned relative to it and not the body.

Is this something I should raise as a feature request or a bug?  

I am curious as to what the expert developers/kendo developers have to say about this.

Thanks,
Numan
Numan
Top achievements
Rank 1
 asked on 13 Aug 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?