简体   繁体   中英

ASP.NET MVC Kendo window popup

I am new to Kendo UI. I am creating a popup window using Kendo UI . I am able to create and showing a Kendo window as popup with custom width and height. For now it is working fine. But when I am trying to create a popup window (Child window) in a popup window (Parent window), I am not able to apply the custom width and height.

My code as follows:

Parent window:

<div id="kendopopupAddContact" style="display: none;">
                @{ 
                    @(Html.Kendo().Window()
                .Name("window_AddContact")
                .Width(1000)
                .Events(e => e
                    .Close("ContactWindow_close")
  )
               )   
                }
            </div>

Child window:

 <div id="kendoPopupAddCompany" style="display: none;">
        @{ 
            @(Html.Kendo().Window()
                .Name("addCompanyPopup")
                .Width(280).HtmlAttributes(new {@style="width: 280px !important"})
                .Events(e => e
                    .Close("addCompanyPopup_close")
                    )
               )   
        }
    </div> 

Can anyone help me?

There is not such concept of child window. Please read this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM