Thursday, July 16, 2009

TreeViewDataSource ShowDoclibChildren

Been spending my time getting my web site to be Section 508 compliant. I'm using the CSS Friendly Control Adapters off of CodePlex. I got the top level menu working nicely, then on to the Site Hierarchy tree view. Headache! My customer wants to see the first two levels expanded in the tree, so not just the libraries but the first two folders in the library also.

When I enabled the control adapter in the compat.browser file, I lost those subtree items - worked fine when I have the out of the box tree view set up, but when I switched to the control adapter, I lost the subitems - only the doc lib appeared, not the folders.

Digging around, I saw that there's a property for the tree view data source object called "ShowDocLibChilden" and "ShowFolderChilden" - set these to 'true' and hey hey there are my items!

Tomorrow's fun will be to get the CSS to work correctly, the indenting and expand/collapse aren't working right, but that'll be for tomorrow's post-coffee labor.

BTW, seems my blog comments are mostly spam, Japanese spam at that (is that tastier? I did like the teriyaki burgers at MOS Burger in Japan, burger patty, sweet soy sauce, rice 'bun' instead of bread!) - so send comments directly to my email, smushkat@hotmail.com