Dialog: Load initial content from Javascript

2 posts, 0 answers
  1. Tim
    Tim avatar
    8 posts
    Member since:
    Nov 2012

    Posted 19 Aug 2014 Link to this post

    I have an error dialog window I need to open where the content is the result of a Http/REST error from the server.  How do I set the content of the body of the window dynamically?
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 21 Aug 2014 Link to this post

    Hello Tim,

    You have two options:

    1) Perform your own $.ajax request and within the success callback of the request set the content of the window with its content method.
    2) Use the refresh method of the Window (which will pretty much do the same as the approach above).

    Kind Regards,
    Petur Subev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top