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

getting URL parameter

2 Answers 75 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
domiSchenk
Top achievements
Rank 1
domiSchenk asked on 12 Aug 2013, 11:45 AM
how can i get the url parameter in a view?

I've got a view with a list of Persons (template):
<ul data-role="listview"
        data-bind="source:dataSource"
        data-style="inset"
        data-template="person-template">
    </ul>
 
<script id="person-template" type="text/x-kendo-template">
    <a href="\#showPerson-view?id=#: Id #">
        <div class="name">#: name #</div>
        <div class="surname">#: birthday #</div>
        <div class="phone">#: gifts #</div>
    </a>
</script>

as you can see i want to open the view "showPerson-view" with the id of this Person.

how can i access this Id in the view "showPerson-view"?
Is this even possible?

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 12 Aug 2013, 01:39 PM
Hi,

The parameters will be accessible in the view show event handler. For more information refer to View Parameters.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
domiSchenk
Top achievements
Rank 1
answered on 12 Aug 2013, 02:33 PM
thx this did help me out!
Tags
HTML5, CSS, JavaScript
Asked by
domiSchenk
Top achievements
Rank 1
Answers by
Steve
Telerik team
domiSchenk
Top achievements
Rank 1
Share this question
or