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

Bug in Kendowindow with view in content

1 Answer 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Elias Sarband
Top achievements
Rank 1
Elias Sarband asked on 16 Jan 2021, 06:23 AM

hello 

i try load view in kendowindow and it works on development but when deploy project on the server and then open kendowindow with view in content in production on iis, first open empty kendowindow and then as soon as possible whole browser became white and empty, even view content is just a div with short text.

 

this is my code

 

var window = $("#" + dialogName).kendoWindow({
                content: {
                    url: "Security/Users",
                    dataType: "html"
                },
                title: name,
                position: {
                    top: topOffset,
                    left:leftOffset
                },
                //width: 700,
                //height: 400,
                size: dialogSize,
                actions: ["Refresh", "Minimize", "Maximize", "Close"],
                animation: {
                    open: {
                        effects: "fade:in"
                    },
                    close: {
                        effects: "fade:out"
                    }
                },
                modal: false,
                close: function (e) {
                   
                },
                open: function (e) {
                    
                    e.preventDefault();
                    
                    closeDrawer();
                   
                }

            }).open().center();

 

first and second images are from development environment and everything is ok, third image is from production environment and has bug.

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 19 Jan 2021, 09:49 AM

Hello Elias,

I would suggest verifying that the path to content is correct. "Security/Users" is a relative URL relative to the current path. If you change it to "/Security/Users" the URL is still relative, but it is relative based on the document root of your website. You can read more on this in this SO thread.

I hope this helps.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Elias Sarband
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Share this question
or