show content

2 posts, 0 answers
  1. Isabelle
    Isabelle avatar
    11 posts
    Member since:
    May 2014

    Posted 13 Jan Link to this post


    How can i display content only on selected ending item(when item has no other sub items) and how can i check this WITHOUT postback at each selected node? Thanks!
  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    239 posts

    Posted 18 Jan Link to this post

    Hi Isabelle,

    You can easily check for a given condition about a RadTreeView node by using the OnClientNodeClicked client event. Possible implementation of the event handler for your scenario could be:
    function displayClickedDodeIfEndNode(sender, eventArgs) {
        var currtentNode = eventArgs.get_node();
        var currentNodeCildrenNumber = currtentNode.get_nodes().get_count();
        if (currentNodeCildrenNumber == 0) {

    You can learn more about the client side events of the RadTreeView from our Documentation.

    Veselin Tsvetanov
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top