getting URL parameter

3 posts, 1 answers
  1. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 12 Aug 2013 Link to this post

    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. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Aug 2013 Link to this post

    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.
  3. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 12 Aug 2013 Link to this post

    thx this did help me out!
Back to Top