HiGrid Examples


Examples that come with JClass HiGrid. Examples are organized by major feature categories, shown in the leftmost column of the table.

Notes:

Category Example Description
Base

Examples that are the basis for the remaining examples.

Base The primordial example. Many of the remaining examples subclass this example. It shows how to set up a simple connection to the DataSource.
Base Button Another primordial example that subclasses Base Example. It adds a button to the layout to provide user interaction for some of the remaining examples.
Data

How to handle display of exceptions encountered by HiGrid.

Foreign Key Editor This example shows how to add combobox drop-downs for fields which are foreign keys to other tables.
Exception

How to handle display of exceptions encountered by HiGrid.

Exception Message This example contains a list of the events thrown by the data model and the grid, and it presents two ways of handling exceptions. By default, HiGrid presents exception messages in a dialog window. You can provide your own mechanism by implementing the HiGridListener interface and providing code there to deal with the exception.
Format

Cell/Grid Formating examples.

Auto Traverse This example shows various options available as to how many and which levels the grid will automatically expose.
Dynamic Format Usually, the formatted colors, etc. of the grid are set at design time. This example shows how to change the background colors of a table from their defaults to either a) alternating colors, b) colors based on the data within the row, or c) random colors.
FormatNode Event This example shows how to catch the FormatNode creation event. This allows various dynamic, run-time formatting effects.
Node Renderer This example shows how to modify the rendering of the nodes that expand and collapse grid levels. It also shows how to change the indent level to minimize the amount of horizontal space used by the grid.
Menu

Customize HiGrid's popup menu.

Popup Menu HiGrid provides a built-in popup menu to allow the user to access many standard features, such as insert/delete/update/print etc. This example shows how to select among the standard menu schemes, and even how to replace portions of the standard menu with your own menu items.
Sort

Customizing the way sorting is done and displayed within HiGrid.

Custom Sortable This example shows how to replace the default sorting behavior for a data type. In this case, the default sorting for Dates is changed from Day, Month, Year to Month, Year, Day. This new sorting behavior can be applied to all columns of this data type, or to a specific column only.
Sort Icon This example shows how to replace the default sort icon displayed by HiGrid.
Summary

Using HiGrid's aggregation support to display summary information.

Summary This example shows how to add summary data to the grid. Summary data can consist of footers, before details and after details. In this example, footer and before detail information is added when the button is clicked.
Summary Unbound Data This example extends the Summary Example by adding computed summary information that does not exist in the DataSource. This type of information is called unbound data.
Validation

Customizing HiGrid's data validation.

Cell Validation This example shows how to do cell level validation. It does two types of validations: it won't accept an empty field and it validates the PurchaseOrderNumber column of the top grid level to prevent any modifications when the first character changes.
Row Validation Often, the value of one field within a row needs to be validated with respect to another in the same row. This example shows how to do row level validation. It will reject changes where the RequiredDate comes before the OrderDate.
Visual

Examples that show off some neat visual effects.

EditorRenderer This example shows how to override the default editor/renderer associations with data types.
Fly Over Tooltips are a much requested feature in many applications. This example shows how to implement fly-over tooltips, where the tip displays information that describes the row the mouse is over.
Folder Icon To add a little pizazz to your application, you can change the look of the "+/-" symbols that indicate whether a table is expanded or collapsed. This example shows how to select one of the many preset folder icon styles, and even how to construct a brand new one.
List Mode This example shows how to simulate a list mode for HiGrid, (i.e.), to make it behave somewhat like a list box. The cell editor is always hidden, and a single click selects a row.
Row Tip The default colors or position of the rowtip that appears on the vertical scrollbar sometimes needs to be customized. This example shows how to change the attributes of the popup rowtip, how to position it, size it and set its text.
ScrollBar Position When placing a component within a web page, one must predetermine the maximum size of the component. Since HiGrid can display a dynamic amount of data, the scrollbars may often be placed beyond the borders of the component. This example shows how to place the scrollbars on the left and top sides of the grid to handle this issue.
Single Selection This example shows how to allow at most one row to be selected by the user.
HiGrid Demos...

Copyright© 2004 Quest Software Inc.