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

Redirect a link in leaf text to splitter pane

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Dec 2014, 01:03 AM
Building a treeview that is sort of an inside company knowledge base.

Some nodes and leaves contain hyperlinks,  usually in the form of:
<a href=\"http://google.com\" target=\"_blank\" title=\"Hgfohoi rgeoehogre\">Google Link</a>"

The customer wants these links to open in the second pane of a splitter.
I can intercept these in my web service server side and alter the text, or I could handle it client-side. Either way, I want the behavior to be as shown in the splitter documentation so that it is altered to a JavaScript command:

splitter.ajaxRequest(".k-pane:last", "http://www.google.com");

Any links to this kind of intercept? I'm not sure if I can build this server-side so that it the text value would contain a javascript commandlet represented by alias text or just intercept the click link event client-side and rework it to open it in the other pane.

An example of the effect I want is here:
http://docs.telerik.com/kendo-ui/api/javascript/ui/splitter#methods-ajaxRequest


Bob Graham

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 22 Dec 2014, 12:31 PM
Hi,

the easiest thing you can do is to execute the javascript in question in the select event handler of the treeview.

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