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

[Solved] How to do a window.open from a treeview

1 Answer 135 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ed Staffin
Top achievements
Rank 1
Ed Staffin asked on 25 Feb 2010, 01:07 PM
Hi All,
Basically, I want have the user click on a node in a treeview and have a new browser window open with the given url.
I know I can set the NavigateUrl to the url and Target='_blank', but I need to go a little further. I want to be able to have something like the link shown below. This way I can hide stuff I want to hide and size the new browser window.

<a href="javascript:void window.open('http://www.envisionaccounting.com',
  '_blank','resizable=1,toolbar=0,status=0,menu=0,top=20,left=20,width=1280,height=1024')"
 >
  Click here!
 </a>

Any help would be great!
Thanks ... Ed


1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 25 Feb 2010, 02:19 PM
Hi Ed Staffin,

You can use OnClientNodeClicking event and open the window in its handler. The url can be set as a custom attribute.

Greetings,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Ed Staffin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or