I am using a Kendo window for a data entry form and when saving changes I want to call the same overlay with loading image that the Kendo grid is using.
I put in a div in my Kendo window:
<div id="divTest">
</div>
In my save changes function I am calling kendo.ui.progress:
var divTest= $("#divTest");
kendo.ui.progress(divTest, true);
Then I have a callback after the save where I turn it off with the same code above except for sending in false.
This works great. Except that I have a number of Kendo widgets on my window (Slider, NumericTextbox, DatePicker) and everything else on the window is blocked except for these widgets due to their z-index, so these appear on top of the overlay.
We have a css file that we load after kendo.common.css, and we use this when we want to override styles in kendo.common.css.
So, in there I have the following (right now I'm using 99999 for testing; just wanted to set it to something I knew would be higher than the widgets):
.k-loading-mask
{
z-index: 99999;
}
This seems to work fine and resolves the issue, but I just wanted to see if this would be a recommended approach or if I'm missing something else I can do here?
Thank you.
I put in a div in my Kendo window:
<div id="divTest">
</div>
In my save changes function I am calling kendo.ui.progress:
var divTest= $("#divTest");
kendo.ui.progress(divTest, true);
Then I have a callback after the save where I turn it off with the same code above except for sending in false.
This works great. Except that I have a number of Kendo widgets on my window (Slider, NumericTextbox, DatePicker) and everything else on the window is blocked except for these widgets due to their z-index, so these appear on top of the overlay.
We have a css file that we load after kendo.common.css, and we use this when we want to override styles in kendo.common.css.
So, in there I have the following (right now I'm using 99999 for testing; just wanted to set it to something I knew would be higher than the widgets):
.k-loading-mask
{
z-index: 99999;
}
This seems to work fine and resolves the issue, but I just wanted to see if this would be a recommended approach or if I'm missing something else I can do here?
Thank you.