how to set LoadContentFrom kendo window in run time

前端 未结 3 1604
予麋鹿
予麋鹿 2020-12-20 09:26

i\'m starter in kendo ui, i want use kendoUi window but i have some problem for use i write this code for create window

@(Html.Kendo().Window().Name(\"Detail         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-20 09:58

    you can try this:

       $("#yourbuttonID").bind("click", function() {
           $("#Details").data("kendoWindow").open();
       });
    

    to load content to use:

    @(Html.Kendo().Window().Name("Details")
        .Title("Customer Details")
        .Visible(false)
        .Modal(true)
        .Draggable(true)
        .LoadContentFrom("brand", "edit") 
        .Width(300)
    )
    

提交回复
热议问题