javascript - Cannot show loading spinner on Kendo window -
i want show loading spinner on kendo window default loading spinner. please inform me mistake in code? thanks.
view:
@(html.kendo().window() .name("wincreate") .visible(false) .loadcontentfrom("create", "issue") .modal(true) .actions(actions => actions .close() ) ) <script type='text/javascript'> function createwindow() { var window = $("#wincreate").data("kendowindow"); window.refresh({ url: "/issue/create" }); window.center(); window.open(); }; </script>
here configurations have tried, cannot make them work properly. have @ them please?
http://docs.kendoui.com/api/web/window#events-open
http://docs.kendoui.com/api/web/window#events-refresh
http://docs.kendoui.com/api/web/ui#methods-progress
here sample cannot integrate javascript method:
"you can use window's open , refresh events show , hide native kendo ui loading indicator on window's content container. container element, widget created."
function onopen(e) { kendo.ui.progress(e.sender.element, true); } function onrefresh(e) { kendo.ui.progress(e.sender.element, false); }
if want use events "open" add .events in snippet below.
@(html.kendo().window() .name("wincreate") .visible(false) .loadcontentfrom("create", "issue") .modal(true) .actions(actions => actions .close() ) .events(events => events .open("onopen") .refresh("onrefresh") ) )
that should functions fire.
Comments
Post a Comment