NodeDataBound treeview event

4 posts, 0 answers
  1. USI
    USI avatar
    26 posts
    Member since:
    Oct 2009

    Posted 29 Feb 2012 Link to this post

    Hello,

    I am using RadFileExplorer and I attached a NodeDataBound to its RadTreeView. Let's say I have a root directory and multiple children nodes, my problem is that the event only is triggered for the root node. Is it a normal behavior? This event should not be triggered for all children nodes? I also noticed that when the event triggers for the root node, the node coming in the event has no children.

    I am using a Custom content provider and I want to be able to change tree icon using image url and not css. How can I achieve that?


    Thanks in advance,
    Michael Pinheiro


  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 05 Mar 2012 Link to this post

    Hi Michael,

    This is expected behavior, please note that, RadFileExplorer does not expose all the functionality of the underlying RadTreeView - the child notes are populated on demand using callbacks.

    Also, the treeview is using custom templates for displaying the nodes and the only way to modify these icons is using CSS - ImageUrl property of the node cannot be used. If you need to apply different icons on the same file types following some custom logic you can use the approach from this forum thread.

    Regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. USI
    USI avatar
    26 posts
    Member since:
    Oct 2009

    Posted 05 Mar 2012 Link to this post

    Hi,

    Thanks for the answer. The link to the forum thread you posted is not working, can you please send me a working link.

    Michael Pinheiro
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 05 Mar 2012 Link to this post

    Hi Michael,

    Please accept my sincere apologies for the incorrect link. I have modify it to point to the correct thread.

    Regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top