This is a migrated thread and some comments may be shown as answers.

Opening from listview?

1 Answer 61 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 14 Apr 2015, 07:46 AM

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?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 16 Apr 2015, 10:49 AM
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!
 
Tags
ModalView
Asked by
Henry
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or