Closing a kendo ui mobile view

2 posts, 0 answers
  1. Tunde
    Tunde avatar
    4 posts
    Member since:
    Jul 2013

    Posted 16 Jul 2013 Link to this post

    How can i close a kendo ui mobile view and also unload all its content. This view contains a youtube video that needs to be stopped / unload once a user click on the back button at the top of the view or on android using the physical back button on the device?Here is the code to my view, but i can't seems to get the view to close. When i use the back button the view goes away but it content does not unload.

    <div data-role="view" id="showpostlayout" data-layout="defaultlayout" data-reload="true">
    <div data-role="header">
        <div data-role="navbar"><a data-click="closePost" data-role="button" data-align="right">Close</a> </div>
      <div id="mypost">
             function closePost() {
  2. Petyo
    Petyo avatar
    2444 posts

    Posted 18 Jul 2013 Link to this post


     The behavior you observe is by default - closing the modalview hides its element. In case you want to remove certain content from an widget, you can use the jQuery manipulation methods (for example, remove). 

    Since our 2013 Q2 release, you can also opt to destroy the modalview widget, which will remove its contents, too. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top