Check out this excellent article by Janko: Ultimate guide to table UI patterns. It is full of great examples and suggestions.
After reading it, I just had to add three more scenarios:
1. Inline Editing
Quicken Online allows simple editing with a pull down for more advanced editing.
Mint.com does the same.
The Ajax framework Ext JS and Ext for GWT offers a pre-built Grid row editor component. Try out the demo. This would work well for tables that are primarily read-only but might need to be edited. This design is not for heavy data entry.
For heavy data entry, use a design like Harvest. They offer a simple grid layout that keeps a live total and provides a Save button for saving all the entries once the person is done (it also auto saves periodically).
Google Docs is an online spreadsheet application with inline editing. It also has a Save button for the whole spreadsheet, as opposed to per row updates.
Inline Editing Best Practices
- Implement tab navigation when you create a table with inline editing.
- Consider how to handle errors, such as highlighting rows or cells with errors in a way that is easy for a person to correct the issues. Don’t break the person’s data entry flow by locking them in a cell with an error, simply highlight the cell with the problem and provide a way for them to return to it later to fix it.
- Offer undo and redo functionality.
Swivel is an app that acts a lot like Excel and provides cell specific error messages.
2. Super Wide Tables
I received an email last week asking me about super wide tables. The email said “I’ve come to the conclusion that breaking them up into smaller chunks is maybe the best way to go, rather than going with a horizontal scroll-bar that goes on for days.”
Based on a lot of design work Bill Scott and I did for the airline industry, I would instead propose instead applying these principles:
- Organize the most important columns to the left.
- Experiment with frozen/fixed columns, so if the person does need to horizontally scroll, they can keep context.
- Only show a set number of columns in the default view (so there is no horizontal scrolling in the default view) and offer a Customize option so the person can choose to hide or show more columns. ExtJs has this built into the column dropdown; I usually add a customize button to the table toolbar with Hide/Show column functionality.
- Offer resizing of columns.
- Offer rearranging of columns.
- If you have a table with some columns editable and other read-only, group editable with editable, read-only with read only.
- Don’t abbreviate column titles, reduce spacing or padding, or drop to a smaller font to fit your table on the screen. That won’t help anyone use your app.
- Try out fat rows like this example from Survs. Instead of having a column for title, created by, created on, last updated on, all of that information is in the second column. Good visual design can help organize the information in a more meaningful way which makes your data easier to scan.
- Use a summary row to chunk the data if appropriate. I know this won’t make your table any narrower, but it might make it more readable.
- Consider putting a visual summary, or roll-up, above the table so the person can make sense of the data visually before diving into a huge table of numbers.
Discover Spend Analyzer offer a dual purpose summary and filter above the rows of transaions. Play with the demo to try it out.
3. In-column Filtering
The example included in Janko’s article has dynamic filters above the table (dynamic meaning, when you make a selection, it dynamically updates the table content- without an extra submit action).
In some web applications, like heavy productivity applications or enterprise apps, in-column filtering is a powerful option to offer. It is pretty easy to implement with Flex or Ajax. Just validate the need for this type of functionality with your customers; it could be overkill for people who just need simple filtering.
Example from Zenoss Open Source Server and Network Monitoring
Try this at Telerik RadControls. This example requires a click on the filter button in the column, and has the option for selecting a specific way to apply the filter.
Play with SmartClientRIA, where the implementation ( they blank out the whole content area while filtering) makes it seem slow.
And a Flex example, where clicking on the filter icon lets you search in that specific column, and then you can further refine by filtering other columns.
Make sure you take a look at Janko’s original article : Ultimate guide to table UI patterns.