Opening from listview?

2 posts, 0 answers
  1. Henry
    Henry avatar
    14 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.

     Example: 

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

     

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

  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 16 Apr 2015 Link to this post

    Hi,

    you should escape the # symbol, like our documentation describes

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top