Passing few parameters to local views

7 posts, 1 answers
  1. Vladimir
    Vladimir avatar
    7 posts
    Member since:
    Dec 2012

    Posted 26 Dec 2012 Link to this post

    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!
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 26 Dec 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Vladimir
    Vladimir avatar
    7 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    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.
  5. Vladimir
    Vladimir avatar
    7 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    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.
  6. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 28 Dec 2012 Link to this post

    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!
  7. Vladimir
    Vladimir avatar
    7 posts
    Member since:
    Dec 2012

    Posted 28 Dec 2012 Link to this post

    Thank you very much, Petyo!
  8. Vladimir
    Vladimir avatar
    7 posts
    Member since:
    Dec 2012

    Posted 28 Dec 2012 Link to this post

    Thank you very much, Petyo!
Back to Top
Kendo UI is VS 2017 Ready