K
Kent Boogaart
Hi,
I have some hierarchical data (FAQs) that I would like to bind to. The basic
structure is:
FAQ Category
+ Categories
+ FAQs
So an FAQ category has any number of sub-categories and any number of FAQs.
I want to display this structure on a web page so that it looks something
like this:
FAQ Category 1
FAQ 1.1
FAQ 1.2
FAQ Category 2
FAQ 2.1
FAQ 2.2
FAQ Category 2.1
FAQ 2.1.1
etcetera. I am confused about how to do this though. Firstly, I don't want
to use the XmlDataSource since my structure is not in XML. So I figured I'd
write my own FAQDataSource. Even if I do that though, which control should I
use to display this? The tree control doesn't allow me to customise the
display enough (no templates). The menu control doesn't allow me to
customise leaf nodes (FAQs) and non-leaf nodes (FAQ categories) separately.
Is there some other control I should be using for this? I thought about
using GridViews recursively but am not sure whether that's a good option...
Please advise,
Kent
I have some hierarchical data (FAQs) that I would like to bind to. The basic
structure is:
FAQ Category
+ Categories
+ FAQs
So an FAQ category has any number of sub-categories and any number of FAQs.
I want to display this structure on a web page so that it looks something
like this:
FAQ Category 1
FAQ 1.1
FAQ 1.2
FAQ Category 2
FAQ 2.1
FAQ 2.2
FAQ Category 2.1
FAQ 2.1.1
etcetera. I am confused about how to do this though. Firstly, I don't want
to use the XmlDataSource since my structure is not in XML. So I figured I'd
write my own FAQDataSource. Even if I do that though, which control should I
use to display this? The tree control doesn't allow me to customise the
display enough (no templates). The menu control doesn't allow me to
customise leaf nodes (FAQs) and non-leaf nodes (FAQ categories) separately.
Is there some other control I should be using for this? I thought about
using GridViews recursively but am not sure whether that's a good option...
Please advise,
Kent