What's new in CanopyX
What CanopyX 0.5.0 changes: a frozen .NET API, strict CSP pages, shared datasets, richer report grids and flows, and one shared Office export core.
CanopyX 0.5.0 is the next release of the CanopyX NuGet packages and the @evotecit/canopyx npm package. The changelog lists every change, and upgrading from 0.4 to 0.5 has the exact replacement for every renamed or removed API.
CanopyX 0.5.0
A frozen .NET API
0.5 settles the public .NET API before 1.0: one way to do each thing, and tones and the theme as the only styling input. CanopyX now shares the Tone, ThemeMode and Icon vocabulary with ChartForgeX, ConsoleMonster and HtmlForgeX; each library declares its own types, so a file that uses two of them needs an alias. Every model gets fluent methods generated at build time. Pages are written with ToHtml, Save and ToHtmlFragment for every view, and grids and trees also have SaveBundle. Class names, CSS and colour strings are gone from the .NET models; JavaScript documents still read them, and the canopyx/2 wire format is unchanged.
Pages under a strict Content Security Policy
CanopyX never turns page text into script or style, so pages work without 'unsafe-inline': with external assets under script-src 'self'; style-src 'self', with a nonce, or as a single file under a policy of its inline hashes. Fragment heights no longer need a style attribute, and components without an id take one from page order instead of a random value, so a page renders the same markup on every load. See security.
Shared datasets
Several grids, pivots and record panels can read one CanopyDataset. The page carries the rows once, every view keeps its own query over the same row objects (a grid that shows only some of the columns gets its own rows with just those cells), and live transactions update all of them at once. See shared datasets.
Report grids
- Columns for directory data. Cell links and link templates, real row headers, monospace columns, byte-size and duration formats, and datetimes in a named time zone such as
Europe/Warsaw(report columns). - Declared views and quick filters. A grid opens on a view you declare, and quick filter chips add or remove one filter with a count.
- Exports. Grids name their export files, can keep hidden columns, and can export a column's display text.
- Narrow grids. The fields hidden to fit the width can expand in a row under the record instead of opening the drawer, and small report grids can collect their toolbar controls in one Grid tools menu.
Office export from the shared OfficeIMO core
Excel, PDF and CSV exports have used OfficeIMO's shared writer core since 0.4.7. In 0.5 the core is its own part, canopyx-officeimo.js, and it is the same OfficeIMO build that ChartForgeX chart exports use, so a page with Office exports in a grid and a chart loads one core instead of two and drops about 108 KB gzip (#224). A page that already loads officeimo.min.js can tell CanopyX to leave the part out with CanopyHtmlDocument.ProvideLibrary.
Exports carry cell tones, badges and the columns the reader chose. PDF exports embed Archivo by default, so text such as "Łódź", "Plzeň" and "Győr" exports without font setup, and a page can set its PDF fonts once for every view with CanopyHtmlDocument or CanopyX.setPdfFonts.
Smaller single-file reports
Excel and PDF exports work from the grid entry point, so a report grid no longer needs the larger reporting entry to export. Single-file hosts can supply lazy parts through CanopyX.setPartLoader and leave them out of the page, and CanopyHtmlOptions.CompressConfig shrinks large embedded view configurations. A 24-row sample report with tabs, filters, a record panel and CSV, Excel and PDF export went from 1,647,658 to 914,070 bytes when it used the grid entry and gzip/base64 part payloads, and its first rows showed in 79.8 ms instead of 103.0 ms (#253 has the full measurements).
Guided flows
Records fields take list, duration and byte-size columns, detail columns edited in a row dialog, nested lists of sub-records and secret columns. Review consent can depend on named checks, a host can read the proposal for unsaved answers without submitting, or for some steps only, readers can clear an optional stored secret, and stored values outside a field's limits no longer block the form. See records fields.
Calendars
The resource timeline zooms continuously between hour and quarter steps, pans by dragging or with Shift and the wheel, and stacks overlapping events up to a limit you set (zoom and pan). Recurrence rules take BYHOUR, BYMINUTE and BYSECOND.
Before you upgrade to 0.5
Most of the work is renaming, and the compiler finds it. Upgrading from 0.4 to 0.5 has a table and an example for each change.
- The packages target .NET Framework 4.7.2, .NET Standard 2.0 and .NET 10.
CanopyX.AspNetCorerequires .NET 10; other .NET 8 and .NET 9 projects get the .NET Standard 2.0 build, without nativeDateOnlyconversion, until they move to .NET 10. - Rebuild libraries that reference CanopyX. Fluent methods moved to generated extension classes, so source compiles unchanged but 0.4 binaries no longer bind.
CanopyToneisTone,CanopyThemeisThemeMode, and icon keys areIconvalues. Files that also use HtmlForgeX need an alias such asusing Tone = CanopyX.Tone;.ToHtmlPage,SaveHtmlPageandSaveHtmlBundleareToHtml,SaveandSaveBundle.- Flow property names follow their fluent methods (
HelpTextisHelp), and duplicate methods such asDescribeare gone (useDescription). - Regenerate saved single-file pages, and serve the new part files beside the runtime if you serve it by file name.
Earlier releases
A smaller runtime
Every entry point and lazy part now ships minified. Statements, strings, property names and the public API are unchanged, and so are CSP nonces, Trusted Types support and file:// pages. You still embed the checked-in assets with no npm step.
| Entry point | Before (gzip) | After (gzip) | Change |
|---|---|---|---|
canopyx.js | 56,483 | 49,296 | −12.7% |
canopyx-interactive.js | 63,536 | 55,660 | −12.4% |
canopyx-grid.js | 131,018 | 116,200 | −11.3% |
canopyx-reporting.js | 157,784 | 139,492 | −11.6% |
canopyx-flow-entry.js | 9,361 | 8,193 | −12.5% |
canopyx-ui.js | 4,722 | 4,175 | −11.6% |
Sizes are in bytes. The ES module builds shrink by the same 10–12%, and all lazy parts together go from 741,513 to 675,827 bytes gzip.
Tidier grids
A tags cell shows only the chips that fit whole and counts the rest in +N, so a clipped "Seco" chip no longer appears. Short headers such as "History bars" stay on one line, and a column menu no longer changes fitted widths. The select-all label in the header now lines up with the row labels beside their checkboxes.


A grid that a search or filters leave empty now says why ("No services match “disk” with 2 filters.") and offers Clear search when only a search is active. Footer totals read like group rows ("Average 98.0%"), and on phones the toolbar sheets dim the page behind them and fold facets into one Refine sheet.
Typed grids in one call
CanopyDataGridView.From(records, x => x.Id) builds a grid with a typed column per public property, adjusted with [CanopyKey], [CanopyColumn] and [CanopyIgnore]. It also takes a DataTable or dictionary rows, including PowerShell hashtables. Write the result with ToHtml, Save or ToHtmlFragment, or as a script-free table with ToStaticHtml().
Large directories
The scale benchmark writes directory-shaped reports through the regular writers at 50 to 500,000 rows or nodes and measures them in Chromium. A 500,000-row user inventory is a 40 MB single file whose first rows show in 0.1 to 0.2 s, and sorting, filtering, grouping and searching it take 0.1 to 0.4 s. A 500,000-node group membership tree saved as a bundle shows its first rows in 0.07 s because branches load when they open, and a policy-by-server matrix of up to 5,000 policies by 200 servers stays under 0.4 s at 4x CPU slowdown. The tables, including the 4x CPU runs, are in directory-sized reports.
New components and options
- Accordion.
CanopyX.accordionand C#CanopyAccordion: single or multiple open sections, deferred content, a filter, header actions, remembered state and readable content without JavaScript. - Slim UI entry point.
canopyx-ui.js(@evotecit/canopyx/ui,CanopyRuntime.Ui) is about 4 KB gzipped, for content pages with no grid or tree. - Shared-screen calendars. Source and resource faces, merged copies of one event, faded past events, day header notes, sized days and a Reset button.
- Smaller additions. Tab badges that change while the page is open,
remember/justifiedtabs, record action tones (primary,neutral,danger) andSelectOnClickfor pointer selection without checkboxes.
Upgrading from 0.4.5 or earlier
A few changes in 0.4.6 need a small edit. The changelog has the exact migration for each.
requestRowActionresolves{ accepted, reason, message }. Test.acceptedinstead of the result itself.CanopyGridMapper<T>is removed; useCanopyDataGridView<T>.CanopyQueryableWriter<T>needs aScope;UseQueryableWriter<T>sets it up for remote endpoints.- Remote endpoint factories should return a new provider, writer or store per request; CanopyX now disposes them when the response completes.
CanopyRemoteLimits.MaxSelectedIdsdefaults to 1,000 (was 10,000), and the newMaxFilterValuesdefaults to 1,000.