Hi,
I noticed that kendo.ui.progress method removes the loading indicator from all of it's descendant. I have 2 async processes which started (almost) at the same time. One indicator showed on a div, and an other indicator showed in a child div. The longer process indicator belongs to the child div's indicator. When the shorter process finished (which has the indicator on the parent div) both the indicators removed.
Is it by design behavior or is it a bug?
Regards
Laszlo Jakab
I noticed that kendo.ui.progress method removes the loading indicator from all of it's descendant. I have 2 async processes which started (almost) at the same time. One indicator showed on a div, and an other indicator showed in a child div. The longer process indicator belongs to the child div's indicator. When the shorter process finished (which has the indicator on the parent div) both the indicators removed.
<!DOCTYPE html>
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
>
<
title
>Kendo UI Snippet</
title
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.rtl.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.default.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.default.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2014.2.716/styles/kendo.mobile.all.min.css"
>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2014.2.716/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"parentDiv"
style
=
"position:relative;width:400px;height:400px; background-color:red"
>
<
div
id
=
"childDiv"
style
=
"position:relative;width:150px;height:150px; background-color:blue"
>
</
div
>
</
div
>
<
script
>
kendo.ui.progress($('#parentDiv'), true);
kendo.ui.progress($('#childDiv'), true);
setTimeout(function() { kendo.ui.progress($('#parentDiv'), false); }, 1500);
setTimeout(function() { kendo.ui.progress($('#childDiv'), false); }, 10000);
</
script
>
</
body
>
</
html
>
Is it by design behavior or is it a bug?
Regards
Laszlo Jakab