Closing a kendoui window with custom Close button within the window

前端 未结 4 1518
攒了一身酷
攒了一身酷 2021-02-07 00:02

I\'m using Kendo UI\'s window component, which is similar to any modal dialog.

I have a close button in it, how do I close the window upon clicking that button (instead

4条回答
  •  逝去的感伤
    2021-02-07 00:34

    In case of working with content loaded by ajax, the Petur Subev's answer is perfect! I´d like to give an example working with templates, that is more simple (whereas not all requests shoulb be by ajax). Consider the template below:

    
    
                                     
                  
提交回复
热议问题