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

Kendo, Treeviw, IFrame, Change URL, VB

1 Answer 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 16 Apr 2013, 02:50 PM
Hi,

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,
NH

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Apr 2013, 12:48 PM
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.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Nathan
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or