How To

9 Apr 2018 / 1 minute to read

Render WaitingPopup from code behind

WaitingPopup can be rendered from the code behind by initializing the required properties in controller and passing those properties via ViewData or Model to the client side

The following code illustrates the rendering of WaitingPopup using WaitingPopup properties from code behind.

<div id="target">
       @{Html.EJ().WaitingPopup("target", Model).Render();}
    </div>
public ActionResult Index()
        {
             WaitingPopupProperties Obj = new WaitingPopupProperties();
            Obj.ShowOnInit = true;
            return View(Obj);
        }