Navigating to Views with params not working as expected

2 posts, 0 answers
  1. Arun
    Arun avatar
    19 posts
    Member since:
    Jan 2012

    Posted 15 Jun 2013 Link to this post

    Navigating to Views with params not working in icenium

    for eg I am passing value like the following in item click 
    onclick="itemclick(#=data.ID#,'#=data.Name#')"
    app.navigate("nextpage.html");

    In nextpage.html i am accessing the value by window.ID and and all these things work only if I comment out the line 
    var app = new kendo.mobile.Application($(document).body,{ platform:'ios'});
    and if i comment out the line my jquery events doesnt work..


    any solutions..??
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 17 Jun 2013 Link to this post

    Hi Arun,

    onclick is DOM event and not event of the Kendo UI widget, additionally it is not clear what you do on itemclick since you have not posted its definition. Generally if you want to use querystring parameters, you can add them directly into the app.navigate URI i.e.:

    app.navigate("nextpage.html?id=" + id);

    You might also consider using Kendo UI Touch widget depending on what you're trying to do.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Missed our first webinar, watch it here.
    Share feedback and vote for features on our Feedback Portal.
Back to Top