window not loading content using setOptions

1 Answer 8 Views
Window
Stefan
Top achievements
Rank 1
Iron
Stefan asked on 26 Mar 2024, 12:36 PM

Hi support team,

 

when setting the content using the setOptions method we only see a white window. Why is not loading?

 


 var window = $('#kendo-window')
            
         	if(!window.data("kendoWindow")) {
            window.kendoWindow({})
          }
          
         window.data("kendoWindow").setOptions({
                 title: title,
           			 content: "../content/web/window/ajax/ajaxContent1.html",
           			 modal: true,
                 actions: ["maximize","close"],
                 position: {
                     top: "10",
                     left: "10"
                 },
                 width: width,
                 minHeight: 900,
               	 scrollable: true,
                 animation: {
                     open: {
                         effects: "fade:in",
                         duration: 500
                     },
                     close: {
                         effects: "fade:out",
                         duration: 500
                     }
                 }
             })
         
         window.data("kendoWindow").center().open()

1 Answer, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 1
Iron
answered on 26 Mar 2024, 12:39 PM | edited on 26 Mar 2024, 12:39 PM

I can answer my own question.

 

you'll have to change the content to use the object:


content: {
                   url: "../content/web/window/ajax/ajaxContent1.html"
                 },

 

and afterwards you need to issue refresh:

 


window.data("kendoWindow").refresh().center().open()

Neli
Telerik team
commented on 29 Mar 2024, 08:35 AM

Hi Stefan,

I am glad you have managed to find a solution to the issue yourself.

We remain at your disposal in case you have any additional quetsions on the matter.

Regards,

Neli

Tags
Window
Asked by
Stefan
Top achievements
Rank 1
Iron
Answers by
Stefan
Top achievements
Rank 1
Iron
Share this question
or