Opening from listview?

2 posts, 0 answers
  1. Henry
    Henry avatar
    16 posts
    Member since:
    Feb 2014

    Posted 14 Apr 2015 Link to this post

    In documentation it says about ModalView:

    "The widget can be open when any mobile navigational widget (listview, button, tabstrip, etc.) is tapped. To do so, the navigational widget should have data-rel="modalview" and href attribute pointing to the ModalView's element id set (prefixed with #, like an anchor)."


     I've tried to use the "data-rel" attribute inside a listview template, but it gives error about invalid template.


    <script type="text/x-kendo-template" id="MyListViewTemplate">
        <a data-rel="modalview" href="#MyModalViewId">Open</a>


    Can you please give example how to use it properly from listview?

  2. Petyo
    Petyo avatar
    2444 posts

    Posted 16 Apr 2015 Link to this post


    you should escape the # symbol, like our documentation describes

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