Released on November 25, 2024
Breaking changes
In this version TreeGrid becomes a part of Grid. Check the Migration guide to keep in step with the latest updates.
New functionality
Common features
- The new helper method
dhx.methods
to define the default data calculation functions used by the library and redefine them to create custom functions
DataCollection
- The ability to group data items, aggregate data in a group, adjust the order and configuration of data grouping, render statistics in the summary rows
- new methods:
group()
,ungroup()
,isGrouped()
- new events:
beforeGroup
,afterGroup
,beforeUnGroup
,afterUnGroup
- new methods:
Form
- The ability to specify patternMask/numberMask for the Input and Textarea controls
- The new
getText()
method for getting the text value of an input - The new
getText()
method for getting the text value of a textarea
Grid
- The TreeGrid mode for Grid (PRO version)
- Row data grouping (PRO version) with the ability to aggregate data in a group, adjust the appearance, order and configuration of data grouping, render statistics in the summary rows
- new Grid properties:
group
,groupable
,closable
- new column properties:
groupable
,closable
- new events:
groupPanelItemClick
,groupPanelItemMouseDown
- new Grid properties:
- The ability to render custom statistics in the header/footer of columns and Grid spans
- the
text
andtooltipTemplate
properties of a column and of the Gridspans
configuration object can be set as callback functions to render calculated summary values - new Grid property:
summary
- new method:
getSummary()
- new column property:
summary
- the
- The ability to specify patternMask/numberMask for columns
- Localization for Grid labels is added
Updates
Grid
- The
asDateObject
property is added for theeditorConfig
object of the DatePicker column editor to provide the ability to work with a Date object as with a string - The
cell
parameter is added for the callback function of the following events:
headerCellClick
,footerCellClick
,headerCellMouseOver
,footerCellMouseOver
,headerCellMouseDown
,footerCellMouseDown
,headerCellDblClick
,footerCellDblClick
,headerCellRightClick
,footerCellRightClick
Ctrl+Enter
shortcut for expanding/collapsing the parent item in the TreeGrid mode
Fixes
- Grid. Rows layout break when the minimum column width is reached with more than one parent (
type: tree
) - Grid. The TypeScript types issue of the constructor object
- Grid. The unrecognized format error that occurs when working with a Date object in string representation
New samples
- Grid. Grouping (PRO)
- Grid. Grouping customization (PRO)
- Grid. Grouping aggregated data via data collection (PRO)
- Grid. Grouping missing data (PRO)
- Grid. Grouping and totals in the summary row (PRO)
- Grid. Grouping and totals in group headers (PRO)
- Grid. Grouping and totals in group headers via data collection (PRO)
- Grid. Grouping and totals in the summary row via data collection (PRO)
- Grid. Custom totals for footer and columns
- Grid. Custom totals for footer and columns with dynamic updates on edit
- Grid. Pattern and number masks
- Form. Number mask
- Form. Pattern mask