Kendo UI modal with Gaussian blur

374 Views Asked by At

It is possible if I wanted to substitute the default grey background of the modal kendo window with a nice gaussian blur like in the image below? Here I provide Demo in Dojo

enter image description here

How to achieve this?

1

There are 1 best solutions below

0
Kokodoko On BEST ANSWER

You have to give your main content (the div that contains all the text) a class too, and then blur that class when the window is opened:

<div id="maincontent">This is the main body text</div>

function onOpen() {       
    let main = document.getElementById("maincontent")
    main.style.filter = "blur(2px)"
}

In your code snippet I have used the P tag to blur:

enter image description here