Welcome Guest Search | Active Topics | Sign In | Register

treeview bind to file directory Options
mckulap
Posted: Monday, September 27, 2010 8:00:53 PM
Rank: Advanced Member
Groups: Member

Joined: 9/18/2007
Posts: 38
Is there any elegant way to get the treeview object to bind (recursively) to a directory on the server and all subs all layers deep?

I did try but am having trouble understanding the hierarchy of the object

Thanks
eo_support
Posted: Tuesday, September 28, 2010 10:03:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would usually use populate on demand. Here is an example:

http://demo.essentialobjects.com/Demos/TreeView/Features/Populate%20On%20Demand/Demo.aspx

Thanks!
mckulap
Posted: Tuesday, September 28, 2010 2:25:43 PM
Rank: Advanced Member
Groups: Member

Joined: 9/18/2007
Posts: 38
ok good thanks much.

As a follow up is there a way to have this object work so when a user clicks the '+' icon beside a folder it expands, but when a user clicks the actual folder name I can grab that and run some .net events? I tried wiring the OnItemClick and just ItemClick to do some action but it seemed to ignore that.
eo_support
Posted: Wednesday, September 29, 2010 10:19:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to set the TreeView's RaisesServerEvent to true.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.