Kendo, Treeviw, IFrame, Change URL, VB

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    43 posts
    Member since:
    Sep 2011

    Posted 16 Apr 2013 Link to this post


    I'm trying to find if their is a way to have a treeview control navigate an iFrame instead of the entire page.

    I can't seem to see any "target" type setting, and you can't tweak the node URL as the treeview control URLencodes it and prefixes it witht he domain/server.

    Is it possible to set the target or force the URL to be treated as raw?

    I should add.... I'm using VB, MVC and Razor.

    Is there a way to do this?

    Kind Regards,
  2. Daniel
    Daniel avatar
    2174 posts

    Posted 18 Apr 2013 Link to this post

    Hello Nathan,

    The TreeView does not support stetting the URL of an iframe. You could include a field in the data that contains the URL and use the TreeView select event to set the src attribute of the iframe. If you are binding the data on the server then you could set the URL as attribute through the HtmlAttributes.
    Another option is to prevent the TreeView links default action and set the src based on the link address.

    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top