Opening Windows Dynamically

2 posts, 0 answers
  1. Paula
    Paula avatar
    3 posts
    Member since:
    May 2015

    Posted 25 May 2015 Link to this post

    I would like to use the kendoui window to open a dynamic number of windows and ideally if that window already existed by name it would just show the same window.


    So i'm imagining a javascript function


    win(name, url, width)



    And I would call this from various places


    <button onclick="win('my window', '/example/view', 100);">click me</button>


    Im not really sure how to create a window like this using its name and how to check if it already exists.


    The app is very simple, a range of menus and each menu opens a window, but the menu is driven from database content, thus I cant predefine all the windows

  2. Plamen Lazarov
    Plamen Lazarov avatar
    135 posts

    Posted 26 May 2015 Link to this post

    Hello Paula,

    Please take a look at the following demo page, which demonstrates how to initialize the window, store it's instance in a variable and then use it to check if the window already exists. This is achieved via the following code snippet:

    if (!"kendoWindow")) {
          width: "600px",
          title: "About Alvar Aalto",
          actions: [

    After the window has been initialized, it's content() and refresh() API methods could be used to set static content or retrieve it from remote URL.

    Let me know if that helps.

    Plamen Lazarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top