Skip to content

docs(skills): correct toolbar, chart tooltip, tabs, paging and event-render guidance - #567

Draft
ivanvpetrov wants to merge 7 commits into
masterfrom
ipetrov/skills-501
Draft

ivanvpetrov wants to merge 7 commits into
masterfrom
ipetrov/skills-501

Conversation

@ivanvpetrov

@ivanvpetrov ivanvpetrov commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #501

Description

Corrects the igniteui-blazor-grids and igniteui-blazor-components skills for the four topics in #501. It also fixes skill snippets that turned out to be broken while those topics were being tested. The guidance targets IgniteUI.Blazor 26.2.x, the version on master.

File Change
grids/references/features.md Toolbar. Custom buttons now go directly in IgbGridToolbar. Blazor renders any non-built-in child of IgbGridToolbarActions into div.igx-grid-toolbar__custom-content, before the built-in actions, whatever the declaration order. The section now has CSS that shows custom content after the actions (order: 1; flex-grow: 0 — order alone moves the actions next to the title). It also has CSS that hides the "empty" custom-content box, because leftover igc-portal-* elements stop :empty from matching; text-only content must be wrapped in an element for that rule. Includes the #497 title workaround.
components/references/charts.md Tooltips. Removes "default tooltips appear on hover with no configuration (TooltipTemplate replaces them)". A new section covers:
components/references/layout.md Tabs. Before igniteui-webcomponents 7.5.0, the tabs' inner part does not grow in the Material, Fluent and Indigo themes, so Center, End and Justify look like Start. IgniteUI.Blazor 26.2.x takes its tabs from its IgniteUI.Blazor.Lite 1.0.x dependency (web components 7.4.1), so it is affected. The note gives the workaround igc-tabs::part(inner) { flex-grow: 1; } and warns against width: 100%, which pushes the panel out of view once the headers overflow. It also says igc-tab { width: 100% } has no effect.
components/SKILL.md, components/references/client-scripts.md Event handlers. Ignite UI EventCallback<T> handlers re-render on their own, so they should not call StateHasChanged(): inside them each call renders immediately and adds a render. [JSInvokable] methods and the full product's Action<T> events (CellEditDone, RowAdded, RowDeleted, chart and gauge events) need exactly one call.
grids/references/paging-remote.md
grids/references/grid-migration.md Removes a redundant StateHasChanged().
grids/references/editing.md
  • OnCellEditDone returns void, because CellEditDone is an Action<T> (an async Task handler fails with CS0407). It also guards the nullable Column / Field.
  • Documents the RowDeleted arguments, and that the grid has already removed the row from the bound list when the event fires.

Motivation / Context

Each claim in #501 was checked at runtime and against the docs and sources. Three of the four needed corrections:

  • Toolbar: confirmed. The cause is in the Blazor wrapper: IgbGridToolbarActions has SupportsVisualChildren = false. With plain web components, the same content stays inside the actions.

  • Chart tooltips: confirmed, and broader than reported. The default Data tooltip and the Category tooltip also render in <body>. A plain selector in the page's .razor.css does style a Razor TooltipTemplate.

  • Tabs: the bug depends on the theme, not the package. It reproduces on IgniteUI.Blazor 26.2.16-beta.0 (tabs from IgniteUI.Blazor.Lite 1.0.1, web components 7.4.1), and igniteui-webcomponents 7.5.0 fixes it (fix(tabs): alignment, scrolling into view, scroll buttons and the header background igniteui-webcomponents#2431). The workaround proposed in the issue is harmful.

  • Event callbacks: the observation is correct, but the recommendation ("one StateHasChanged() at the end") adds a render to every EventCallback handler. Measured renders for 0 / 1 / 2 manual calls in a synchronous handler:

    Handler Renders
    Ignite UI EventCallback 1 / 2 / 3
    @onclick 1 / 1 / 1
    Action<T> or [JSInvokable] 0 / 1 / 2

Related: #171, #491, #493, #497, #500, #569.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog

Component(s) / Area(s) Affected:

Agent skills (skills/igniteui-blazor-grids, skills/igniteui-blazor-components). The guidance covers Grid (toolbar, paginator, editing), Charts, Gauges, Tabs and event handling.

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests
  1. Every finding re-verified on 26.2.16-beta.0, side by side with 26.1.98. Real Blazor apps driven in headless Chrome over CDP, with all console output captured, covering:

    The behaviour is identical in both versions, except that 26.2 no longer logs the failed PageChange conversion.

  2. Sources checked: the xplat-docs and infragistics.com Blazor docs, the Microsoft Learn rendering and event-handling articles, dotnet/aspnetcore (release/8.0–10.0), igniteui-angular, igniteui-webcomponents, and reflection over the shipped DLLs.

  3. Snippets: every new or changed snippet was compiled and run, the editing.md handler against 26.2.16-beta.0 with nullable enabled.

  4. Generation check: fresh agents with only the updated skills built a grid app (toolbar, remote paging, editing), a chart dashboard, a tabs page and a task board. All of them work.

Test Configuration:

  • .NET version: .NET 10 (SDK 10.0.401), net10.0
  • Packages: IgniteUI.Blazor.Trial 26.2.16-beta.0 (with its IgniteUI.Blazor.Lite 1.0.1 dependency); compared with 26.1.98
  • Hosting model: Blazor WebAssembly and Blazor Server (Interactive Server)
  • Browser(s): Chrome (headless)
  • OS: Windows 11

Screenshots / Recordings

Before/after, captured on IgniteUI.Blazor.Trial 26.2.16-beta.0 (headless Chrome).

Grid toolbar: custom content placement (features.md)
01-toolbar-custom-content

Tabs alignment and width, Material theme (layout.md)
02-tabs-material

Remote paging snippet (paging-remote.md)
03-remote-paging

Category chart TooltipTemplate and ToolTipType (charts.md)
04-chart-tooltip-template

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Follow-ups, not in this PR:

  • Other repos:

    • igniteui-cli: resync its copy of the skills. It also uses parameters that don't exist, such as IsDefaultTooltipEnabled and IsTooltipVisible.
    • xplat-docs: the tabs Justify description and the CSS-parts table are wrong, and the sparkline page lists tooltips that don't work.
    • toolbar-sample-4 in igniteui-blazor-examples has the same toolbar pattern.
  • Lite and 26.2: move IgniteUI.Blazor.Lite to igniteui-webcomponents ~7.5.0. It fixes the tabs bug for Lite, and through it for 26.2.

  • Paginator: it keeps its page after a remote sort, and its navigation methods fail (IgbPaginator: the page can't be set from code — PaginateAsync/NextPageAsync fail and a bound Page is applied only once #569).

  • 26.2 setup guidance:

    • app.bundle.js is no longer required.
    • The full package now depends on IgniteUI.Blazor.Lite.
    • api.js / registerScript works for full-product templates, and igRegisterScript is deprecated.

    These need their own update to AGENTS.md, SKILL.md, setup.md and client-scripts.md.

…render guidance

- grids/features.md: custom toolbar content goes directly in IgbGridToolbar
  (Blazor renders it before the built-in actions even when declared inside
  IgbGridToolbarActions); add CSS to place it after the actions and to hide
  the empty custom-content box; note the #497 title workaround
- components/charts.md: replace the "tooltips with no configuration" claim
  with a per-component Tooltips section (ToolTipType rule for TooltipTemplate,
  <body> placement, styling, callout, doughnut/sparkline/gauge gaps)
- components/layout.md: theme- and version-scoped IgbTabs note with the
  igc-tabs::part(inner) { flex-grow: 1 } workaround (before WC 7.5.0)
- components/SKILL.md, client-scripts.md: StateHasChanged() rules for
  EventCallback, Action<T> and [JSInvokable] handlers
- grids/paging-remote.md: add PagingMode="GridPagingMode.Remote", drive
  loads from PagingDone instead of PageChange, drop redundant
  StateHasChanged() calls
- grids/grid-migration.md: drop redundant StateHasChanged()
- grids/editing.md: CellEditDone handler returns void (Action<T>);
  document RowDeleted args and that the grid has already removed the row
  from the bound list

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guidance incorrectly implies automatic rendering for Action handlers, risking stale UI state, and recommends a cleanup selector that can hide valid text-only toolbar content.

2 open issues
What changed in this PR

Updates the public Blazor skills to address #501, correcting component guidance and examples used by agents generating applications. This is a documentation-only change.

Changes:

  • Clarifies toolbar placement, chart tooltip support and styling, and theme-dependent tabs workarounds.
  • Distinguishes automatic event rendering from handlers that require StateHasChanged().
  • Corrects remote paging configuration and editing-handler examples.
File Description
skills/​igniteui-blazor-grids/​references/​paging-remote.md Adds remote paging mode, uses PagingDone, and removes redundant renders.
skills/​igniteui-blazor-grids/​references/​grid-migration.md Updates paging-event guidance and removes a redundant render call.
skills/​igniteui-blazor-grids/​references/​features.md Documents toolbar content placement and CSS workarounds.
skills/​igniteui-blazor-grids/​references/​editing.md Corrects editing-handler signatures and explains row-delete behavior.
skills/​igniteui-blazor-components/​SKILL.md Adds event-type-specific rendering guidance.
skills/​igniteui-blazor-components/​references/​layout.md Documents the tabs sizing workaround and its version scope.
skills/​igniteui-blazor-components/​references/​client-scripts.md Explains rendering after JavaScript-to-.NET callbacks.
skills/​igniteui-blazor-components/​references/​charts.md Details tooltip availability, configuration, placement, and styling limits.

Review effort: Balanced

- client-scripts.md: automatic re-render applies only to EventCallback<T>
  events; Action<T> events still need StateHasChanged()
- features.md: the empty custom-content rule checks element children only;
  wrap text-only toolbar content in an element

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the documentation-only corrections to Blazor component and grid guidance.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

ivanvpetrov and others added 2 commits November 23, 2026 08:22
- paging-remote.md: drop the PaginateAsync / NextPageAsync / PreviousPageAsync
  snippet (all fail on 26.2, #569); a PageChange to page 0 never reaches the
  handler and nothing is logged (#171), so PagingDone stays the event to use
- editing.md: guard the nullable Column / Field in the CellEditDone snippet
- layout.md: tabs note covers 26.2, which takes its tabs (WC 7.4.1) from its
  IgniteUI.Blazor.Lite dependency

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guidance must distinguish dispatcher-bound callbacks from timer/background-service notifications, which require InvokeAsync around state updates and rendering to avoid InvalidOperationException on Interactive Server.

1 open issue

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for these IgniteUI.Blazor documentation updates.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

- Chart events: only the move events (SeriesPointerMove, PlotAreaPointerMove,
  DataChart SeriesMouseMove / PlotAreaMouse*) are Action<T>; Enter/Leave/Click
  and the pie Slice* events are EventCallbacks.
- StateHasChanged in EventCallbacks: immediate render applies before the first await.
- paging-remote: #569 bound Page is unreliable, not first-change-only; stale-result
  guard in the load method; remote sort via SortingExpressionsChange (full
  multi-sort) reloading the current page; C# filter events carry no operands,
  so read the grid's filteringExpressionsTree through JS; the grid still runs
  its local pass.
- charts: guard a null TooltipTemplate context (Default / DataChart series),
  wrapper styling, which .razor.css selectors match, JS templates via
  series.tooltipTemplate, pie Position/SliceEnter, tooltip layers need the
  interactivity module.
- features: #497 trigger is title content wider than the title area;
  toolbar exporter examples drop PDF explicitly (also grid-migration).
- editing: inject Logger/EmployeeService, null-safe Column in CellEdit,
  RowData/RowKey and UI update after the save.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants