Scott on Writing

Musings on technical writing...

A Tabbed Interface for Showing Parent/Child Data

Last week's 4Guys article looked at creating a collapsible details region using a Repeater and some nifty client-side DHTML.  This technique allows for a page with potentially gobs of information to be presented in a more readable format, as can be seen in this live demo.  (The astute reader might have noticed that this technique is identical to a collapsible RssFeed demo I provided a while back...)

Anywho, I was playing with the client-side code a bit and thought that it would be cool to take this concept a bit further and have collapsible-like regions for displaying parent/child data.  After a lot of tweaking, I was able to create a demo that had the look and feel I wanted.  Now, I have to warn you I am pretty limited when it comes to my client-side / CSS skills, so any suggestions on improving the code would be most appreciative.  Also, note that it works best on IE - in FireFox it “works,” but doesn't look good.

In any event, here's a live demo: http://aspnet.4guysfromrolla.com/demos/TabInterface.aspx.  To view the client-side code, you'll have to do a view/source.  The output was generated with some hardcoded HTML markup and a Repeater (for getting the parent/child database data).  Eventually I'd like to make this into a custom server control, but one thing at a time...  So, if you want to take a look at the demo, feel free, and leave a comment if you have ideas on improving the CSS.  The plan is to write up an article on this for 4Guys sometime this week.

posted on Monday, September 20, 2004 10:36 AM

Feedback

# re: A Tabbed Interface for Showing Parent/Child Data 9/20/2004 11:35 AM Dan Hounshell

Scott, I just clicked the link and was checking it out - looked pretty good. Looks good in Firefox to me.

# re: A Tabbed Interface for Showing Parent/Child Data 9/20/2004 11:54 AM Milan Negovan

Scott, why both visibility and display? Display alone should do it.

# Money/Quicken style interfaces for the Web 9/20/2004 2:36 PM Visual ActiveKent Sharkey .NET SE 3.11

# re: A Tabbed Interface for Showing Parent/Child Data 9/20/2004 4:08 PM Everett Creekmore

Thanks for the info.

# re: A Tabbed Interface for Showing Parent/Child Data 9/20/2004 9:02 PM Bozo

Check out http://www.bindows.net/ . Cooler than anything you have seen.

# re: A Tabbed Interface for Showing Parent/Child Data 9/21/2004 3:23 AM Brian

Bindows is cool but at $695 it is not something I can use in my small budget projects. Is there an Open Source or lower cost alternative?

# re: A Tabbed Interface for Showing Parent/Child Data 9/21/2004 3:50 AM Andrei

I was thinking I could use it in emulating some treeview like in Outlook 2003.

# re: A Tabbed Interface for Showing Parent/Child Data 9/21/2004 9:52 AM Scott Mitchell

The article is now online...
http://aspnet.4guysfromrolla.com/articles/092204-1.aspx

# Tabbed interface in the browser 9/21/2004 12:56 PM the blog of michael eaton

# re: A Tabbed Interface for Showing Parent/Child Data 9/23/2004 7:25 AM Kevin Blakeley

Cool article scott. One problem that I am not sure if you are aware of or not but if you resize your browser window you run into some problems on how it renders.

# re: A Tabbed Interface for Showing Parent/Child Data 10/7/2004 6:53 PM Jeff Atwood

That graphing demo from the Bindows site eventually locked up Firefox 1.0, hard-- I had to CTRL+ALT+DEL it.

So.. yeah. If that's the future of platform independent web apps, I'm sticking with smart clients (aka HREF exes)

# re: A Tabbed Interface for Showing Parent/Child Data 5/24/2005 4:09 PM Jack

That is cool. One question though: how can anyone after the year 1998 not used stored procedures? I really don't get why you still see these select statements built in strings...

# re: A Tabbed Interface for Showing Parent/Child Data 4/7/2006 7:46 AM Richard

I am a relative newbie to css and .net and this was exactly what i was loking for. I have adapted it somewhat but the basis was great - saved an awful lot of work. I use it where I have a lot of data and rather than scrolling or internal page links (with thier usability issues) this is so much better. But occasionallhy I need to print the data. I have tried creating a separate print style sheet but this doesn't override the javascript so I only get one tabbed pane per print. Any suggestions?

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

My Links

Ads Via DevMavens

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<March 2010>
SMTWTFS
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Comment Stats

DayTotal% of Total
Sunday 2056.8%
Monday 42514.1%
Tuesday 51917.2%
Wednesday 55518.4%
Thursday 58019.2%
Friday 54718.1%
Saturday 1886.2%
Total 3019100.0%

Hour1Total% of Total
12:00 AM 782.6%
1:00 AM 812.7%
2:00 AM 682.3%
3:00 AM 822.7%
4:00 AM 692.3%
5:00 AM 1264.2%
6:00 AM 1183.9%
7:00 AM 1816.0%
8:00 AM 1926.4%
9:00 AM 1585.2%
10:00 AM 1886.2%
11:00 AM 1936.4%
12:00 PM 2016.7%
1:00 PM 1846.1%
2:00 PM 1695.6%
3:00 PM 1354.5%
4:00 PM 1153.8%
5:00 PM 1073.5%
6:00 PM 1013.3%
7:00 PM 1073.5%
8:00 PM 923.0%
9:00 PM 882.9%
10:00 PM 913.0%
11:00 PM 953.1%
Total 3019100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 4.97159
Monday 4.80384
Tuesday 4.04477
Wednesday 7.39680
Thursday 6.26676
Friday 5.07466
Saturday 4.78177
Total 5.403019

Hour1 Entry MadeAvg.Total
12:00 AM 5.2937
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 3.8550
8:00 AM 3.72134
9:00 AM 6.06297
10:00 AM 5.63276
11:00 AM 4.22194
12:00 PM 6.16351
1:00 PM 3.09133
2:00 PM 4.89230
3:00 PM 7.64321
4:00 PM 4.00108
5:00 PM 6.07170
6:00 PM 4.64116
7:00 PM 8.95188
8:00 PM 8.63164
9:00 PM 5.00115
10:00 PM 6.31101
11:00 PM 4.5732
Total 5.403019

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles