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
>
<
div
id
=
"mypost"
>
</
div
>
</
div
>
<
script
>
function closePost() {
$("#showpostlayout").kendoMobileModalView("close");
}
</
script
>