Hi,
I'm having a bit of a problem binding the treeview to a list of folders which can contain assets at any level. Essentially what I want is the following:
Folder 1
-> Folder 2
---> Asset 2-1
-> Folder 3
-> Asset 1
---> Asset 1-1
So, a Folder can have Folders and Assets as children. To make it more confusing an Asset can have other Assets as children.
This application, for the moment at least, will not be stored in a database so I would like to bind through the related entities rather than having to use parent Id's etc. From looking through the Telerik samples, it seems that self-referencing and object-relational binding are carried out by different binding providers - is this correct?
Is it possible to carry out the above solely using binding? If not, I may have to end up binding to an object that has parent/child Id's for the self-referencing and also which encapsulates the actual object (Asset/Folder) that I really want to bind to.
I may have just answered my own question there, but I wouldn't mind hearing anyone else's thoughts on this if you have attempted the same thing.
I'm having a bit of a problem binding the treeview to a list of folders which can contain assets at any level. Essentially what I want is the following:
Folder 1
-> Folder 2
---> Asset 2-1
-> Folder 3
-> Asset 1
---> Asset 1-1
So, a Folder can have Folders and Assets as children. To make it more confusing an Asset can have other Assets as children.
This application, for the moment at least, will not be stored in a database so I would like to bind through the related entities rather than having to use parent Id's etc. From looking through the Telerik samples, it seems that self-referencing and object-relational binding are carried out by different binding providers - is this correct?
Is it possible to carry out the above solely using binding? If not, I may have to end up binding to an object that has parent/child Id's for the self-referencing and also which encapsulates the actual object (Asset/Folder) that I really want to bind to.
I may have just answered my own question there, but I wouldn't mind hearing anyone else's thoughts on this if you have attempted the same thing.