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

Dialog: Load initial content from Javascript

1 Answer 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 19 Aug 2014, 08:35 PM
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?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Aug 2014, 12:29 PM
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
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Window
Asked by
Tim
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or