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

Navigating to Views with params not working as expected

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 15 Jun 2013, 06:07 AM
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..??

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Jun 2013, 11:43 AM
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.
Tags
General Discussions
Asked by
Arun
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or