Loading different content on different button click

3 posts, 1 answers
  1. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 26 Jul 2012 Link to this post

    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. Answer
    Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 31 Jul 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 31 Jul 2012 Link to this post

    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.
Back to Top