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

Initialising kendoWindow with ajax content url does not trigger ajaxStart

2 Answers 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Feb 2012, 05:26 PM

Hi,

Since KendoUI is built on jQuery, I would expect all functionalities available in jQuery to be used to the fullest in your framework.

We initialise our kendoWindow as follows:

var modalTitle = $(this).attr('data-modal-title'
var modalUrl = $(this).attr('data-modal-url'
var modalWidth = $(this).attr('data-modal-width');
                $('<div></div>')
                    .kendoWindow({
                        width: modalWidth,
                        title: modalTitle,
                        content: modalUrl,
                        modal: true
                         
                    })
                    .data("kendoWindow")
                        .center()
                        .open();

This triggers an ajax call to the server, so using jQuery, I would expect that the ajaxStart() event would be triggered, as we use that event to show a "loading..." icon on the top right corner of the website.

It doesn't get triggered.  Is this desired behaviour, or a bug?  I hope the latter, as we really need this framework to be built on top of the jQuery libraries, so we don't need to change everything we already have in place!

Can you please confirm that your framework is built on top of jQuery, and uses its methods when available?

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 14 Feb 2012, 03:33 PM
Hi,

Sorry to bump this, but could you please confirm this is desired behaviour or a bug?
We highly rely on the ajaxStart methods to visualise the fact that something is loading on the website...
0
Atanas Korchev
Telerik team
answered on 14 Feb 2012, 04:06 PM
Hello,

 The window loads cross domain urls inside iframe. This will not trigger the ajaxStart event. Local urls would be loaded using ajax.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or