Redirect a link in leaf text to splitter pane

2 posts, 1 answers
  1. Robert
    Robert avatar
    27 posts
    Member since:
    Aug 2014

    Posted 18 Dec 2014 Link to this post

    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
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 22 Dec 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top