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

Passing few parameters to local views

6 Answers 298 Views
Application
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 26 Dec 2012, 03:29 PM
I try to pass few additional URL parameters when navigating to local View. One parameter passed correctly (like this: "/#quotes?type=SHARES"). But if I pass two or more parameters (e.g. "/#quotes?type=SHARES&country=RU") javascript error occurred: "Uncaught TypeError: Cannot call method 'getAttribute' of undefined". 

Method: 
kendo.initWidget 

line: 
role = element.getAttribute("data-" + kendo.ns + "role");

Please describe how to pass correctly few parameters to local views!

6 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 26 Dec 2012, 07:06 PM
Hello Vladimir,

Thanks for contacting us. It seems like you may have stumbled upon a bug in our implementation. However, the information you have provided is not enough for me to reproduce the problem you describe (see this test). 

Is it possible for you to modify the jsbin example, and post the link, so that we can see what goes on? 

Many thanks,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vladimir
Top achievements
Rank 1
answered on 27 Dec 2012, 09:53 AM
This error reproduces only in latest versions of framework (e.g. v2012.3.1210). In old versions (like http://cdn.kendostatic.com/2012.3.1114/js/kendo.mobile.min.js) params proceeds successfully.
0
Vladimir
Top achievements
Rank 1
answered on 27 Dec 2012, 12:26 PM
I found reason of the error! If navigation performed by plain link (<a href="#foo?bar=baz&foo=qux">Go to foo</a>) but not by kendo widget (<a data-role="button" href="#foo?bar=baz&foo=qux">Go to foo</a>
), the link treates as external link to remote view (not local link). Links without params or with just one param treates as links to local views. 
How can I specify that plain link with few params refers to local view? 
By the way if I navigate to local view with few params from button widget (correctly) and then I update page, the error occured - I cannot send such link to friends.
0
Accepted
Petyo
Telerik team
answered on 28 Dec 2012, 09:37 AM
Hi Vladimir,

Thank you for the insight - indeed, it seems like we are treating a local view URL as a remote one, which is an incorrect behavior. We will try to address this problem as soon as possible - most probably in our next internal build, which should be released next week.

I am updating your telerik points for this finding. Thank you once again.

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vladimir
Top achievements
Rank 1
answered on 28 Dec 2012, 01:18 PM
Thank you very much, Petyo!
0
Vladimir
Top achievements
Rank 1
answered on 28 Dec 2012, 01:18 PM
Thank you very much, Petyo!
Tags
Application
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Vladimir
Top achievements
Rank 1
Share this question
or