Kendo UI Window overlay opacity

2.7k Views Asked by At

How can I set overlay opacity with CSS. I tried .k-overlay { opacity:0.9; } but it wont work. Can anyone help me? here I provide a simple demo

2

There are 2 best solutions below

4
Carsten Franke On BEST ANSWER

.k-widget would be a too broad selection. You can set the opacity for that very window once the window will be shown:

<script>
function onOpen() {
  setTimeout(function(){ $("#dialog").parent().css("opacity", 0.2); }, 10);
}

$("#dialog").kendoWindow({
  modal: true,
  open: onOpen
});
</script>
1
Joe Glover On

You could try .k-overlay { opacity:0.9 !important; } instead. That will override the setting which kendo applies directly to the overlay.