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

Loading different content on different button click

2 Answers 165 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 27 Jul 2012, 02:46 AM
I would like to load different content into the window depending on what button was click by the user.

I was trying something like this:

var desk = $("#window");
 
        $("#openEmail").click(function (e) {
            desk.contents() = "test";
            desk.data("kendoWindow").open();           
        });
and that does not work of course.

Any ideas how this could be done?

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 31 Jul 2012, 12:25 PM
Hi Andrew,

In your case you should use the client API of the window and more specifically the refresh method. In the documentation you can find everything on the subject.

http://docs.kendoui.com/api/web/window#refresh 


Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Andrew
Top achievements
Rank 1
answered on 01 Aug 2012, 03:09 AM
Thanks Petur,

I have actually asked the question in here also:
http://www.kendoui.com//forums/ui/window/load-content-on-click-into-window.aspx 
and went with that solution.
Tags
Window
Asked by
Andrew
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or