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

TreeView general questions

1 Answer 124 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 01 Aug 2008, 02:09 PM
Hi, I've been looking at your treeview control and still have some questions. I am looking for a file-system-based site navigation for a public website, and would have to meet a few requirements:
 
1. I need the final output to be table-less, purely stylesheet-driven (not inline style), accessible html -- preferably a bulleted list. We don't need advanced features like right-clicking, windows ui simulation, drag-drop, etc. Just a clean, simple output that can be read by a screen reader or other alternate agent.
 
2. One thing the out-of-box sitemap provider will do is to consider the current node to be the parent, so it populates the node structure from the current node downwards. This works until you get to a page in a folder, and then it dumbly considers that page, not its parent folder, the top node. So, you don't see that page's siblings, and you don't get a link back to the parent folder.
 
We'll use an out-of-box breadcrumb control in conjunction with this to take care of the section context. We would need the provider to populate the folder nodes from the current parent downward, and populate all of the current parent's immediate child nodes. So you would see the current parent folder, any subfolders, and any files in the current folder. The folder names in the nodes are the names of the folders. The page file names in the nodes are taken from the Title attribute of the page file. Like this.
 
<Breadcrumb> Home > About
About Us (the page is currently showing about/default.aspx)
    Introduction (intro.aspx file)
    Board of Trustees (board.aspx file)
    Jobs (folder path about/jobs)
 
When you clicked "Jobs" you'd be taken to jobs/ and see this:
 
<Breadcrumb> Home > About
Jobs (the page is currently showing about/jobs/default.aspx)
   Requirements (requirements.aspx file)
   Equal Opportunity (equal_opportunity.aspx file)
 
When you clicked "Requirements" you'd be taken to the page and see this:
 
Jobs (this is now a link to the ../about/jobs/ folder path)
  Requirements (requirements.aspx file -- this is the current page)
  Equal Opportunity (equal_opportunity.aspx file)
 
3. The provider should support an arbitrary level of folder nesting (whatever is there, it will find it). It should ideally only iterate through the current context, and should have some soft caching method so that it doesn't have to crawl after the first time unless the file structure has changed. We want to ease the load on the server but we don't want to have to restart the application every time we update the files.
 
If your software will do this, please let me know.
 
 
Thanks in advance,

David Morgan

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 04 Aug 2008, 03:22 PM
Hi David,

RadTreeView for ASP.NET AJAX can be rendered as a simple (nested) bulleted list. No inline styles are rendered, however, classes are, so the control still can be styled.

On the other hand, the additional functionalities you are aiming at are not supported by RadTreeView out-of-the-box. Due to their specific purposes, they should be implemented separately from the TreeView. That is, Breadcrumb should be implemented on the TreeView, as well as the directory structure data provider.

Finally, a lightweight RadTreeView can perfectly be used to display data in the desired way, however, the data should be provided externally (let say in the form of a self-referencing DataTable or a list of objects).

If you need additional information, we will be glad to provide it.

Regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
David
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or