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

NodeDataBound treeview event

3 Answers 111 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
USI
Top achievements
Rank 1
USI asked on 29 Feb 2012, 11:07 AM
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


3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 05 Mar 2012, 12:13 PM
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.
0
USI
Top achievements
Rank 1
answered on 05 Mar 2012, 12:22 PM
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
0
Dobromir
Telerik team
answered on 05 Mar 2012, 01:35 PM
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.
Tags
FileExplorer
Asked by
USI
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
USI
Top achievements
Rank 1
Share this question
or