index | search | no replies | posting guidelines | help login | register
Index » General » Site & Forum Feedback
search this forum:
:: Some ASP treeview questions :: (3)Post a New Message | Post a Reply
Jul 3 2007, 10:41 AM
 Some ASP treeview questionsPost a Reply
 Kalemika

View this author's profile Send this author a private message

since: Jul 3, 2007
from: somewhere

The ASP treeview is a really great control, and I'm actually curious about two aspects of it, any help on this topic would be greatly appreciated.

1) How does the treeview go about crawling the tree item database in SQL server in hierarchical order with only one SQL statement? I'm not particularly familiar with XSL so I'm not sure if the ordering is done after the fact or in the code, but I'd be curious as to the methodology as I need to crawl a database table in a similar fashion.

2) Is there any way to modify the XSL stylesheet to allow clicking on the expand/hide/node icons as well as the text of the links?

Thanks a lot,

Kale

Jul 5 2007, 8:59 AM
 Re: Some ASP treeview questionsPost a Reply
 whichman

View this author's profile Send this author a private message Visit author's homepage

from: Laurel, MD

2. To click on the icons as well as the text, use
Use the x located at http://aspwebsolution.com/articles/xmlrep/ajax_treeview2/index.htm

1. The treeview crawls using XSL (treeview.xsl). The reason I used XSL is because, stylesheets are best suited for grouping hierarchical, multi level data.
All you need is for the ChildNode to know its direct parent. e.g.

<Groups>
<Group ID="A" Text="Group A"/>
<Group ID="B" Text="Group B" Parent="C"/>
<Group ID="C" Text="Group C" Parent="A"/>
</Groups>


will group to
A
+-- C
    +-- B




-------------------------
Master of the Game
Jul 11 2007, 7:48 AM
 Re: Some ASP treeview questionsPost a Reply
 Kalemika

View this author's profile Send this author a private message

since: Jul 3, 2007
from: somewhere

Thank you very much, this is really useful.

Pages: (1)   [1]

search this forum: