About the Jx.Grid test page
This test page demonstrates some basic and advanced ways of using Jx.Grid. The Jx.Grid control is designed to help you present tabular data in a visually appealing and functional way. Tabular data is normally displayed in an HTML table. Jx.Grid uses HTML tables for its basic structure, but avoids some of the limitations of just using a regular HTML table:
- Optional row headers and column headers.
- Scrolling row and column headers that stay in the view.
- Fit nicely into other JxLib components such as dialogs and panels
- Support for dynamically loading data through customizable data models
- Customizable prelighting and selection of rows, columns and cells.
This example includes some menus that allow you to turn on and off some of the configurable options of a Jx.Grid, including:
- Row Options:
- Row Prelighting - turns on a hover effect for the entire row when the mouse is hovered over a row
- Row Header Prelighting - turns on a hover effect for only the row header when the mouse is hovered over a row
- Row Selection - makes a row selectable by the user when clicking on the row header or any cell in the row
- Column Options:
- Column Prelighting - turns on a hover effect for the entire column when the mouse is hovered over a column
- Column Header Prelighting - turns on a hover effect for only the column header when the mouse is hovered over a column
- Column Selection - makes a column selectable by the user when clicking on the column header or any cell in the column
- Cell Options:
- Cell Prelighting - turns on a hover effect for the cell when the mouse is hovered over a cell
- Cell Selection - makes a cell selectable by the user when clicking on the cell
- Editor Options:
- Enable - turn the editor on or off
- Close on Blur - set to false to disable it or an integer to set the time in miliseconds
- Field Validation - Enable a custom validator for every column if needed.
Uses Jx.Plugin.Field.Validator which implements the Mootools Field Validator
- Field Formatted - turn on to show the value inside the editor the same way it is displayed in the grid.
Turn off to show the value the way it came with the model. Can be enabled separately for every column by adding a boolean 'fieldFormatted' option to the option of the column. Example shows this for column 'website'
- Keyboard Support - allows the user to control through the grid with some commands:
[Arrow-Up/Down],[Tab],[Shift+Tab],[Enter],[Esc],[Ctrl+Enter],[Ctrl+Shift+Enter],[Ctrl+Up/Down/Left/Right]
- PopUp Options - use - switch between a regular input field and a little popup with optional customizable buttons and label
- PopUp Options - useButtons - enable/disable buttons in a popup
- PopUp Options - buttons.submit/cancel - Jx.Button options for the submit/cancel button
- PopUp Options - useLabel - shows the title of the column above the input field inside the popup
- linkClickListener - enables a 'click protection' for links that are formatted with Jx.Formatter.Uri to be able to click anywhere inside a cell
to show the *only* editor instead of showing the editor and open the link