New to Kendo UI for jQuery? Download free 30-day trial

Widget Object Is Undefined after Loading a Page through AJAX


Product Progress® Kendo UI® for jQuery
Kendo Version 2017.2.621


The widget object is undefined after loading a page with AJAX.


This issue is usually caused when the page loaded via AJAX contains a script reference to jQuery. When jQuery is re-initialized, all jQuery-based data attributes are cleared, including the data (kendoWidget) attribute that holds the Kendo UI widget object.


Load a partial HTML fragment that does not contain any unneeded jQuery references, or use an iframe to load the complete page.

The example below demonstrates a test issue.

    // loads complete page
    content: "/foo"

The example below demonstrates the solution of the test issue above.

    // load complete page...
    content: "/foo",
    // ... and show it in an iframe
    iframe: true

// or

     // load partial page, without jQuery reference
    content: "/foo"
In this article