FAQ
Symptoms, causes and fixes for Klyroo.Dashboard, followed by known limitations and frequent questions.
On this page
Troubleshooting
A block shows a skeleton and never fills
The resource is still Idle: nothing has loaded it. Call controller. (or resource.) once the resources are registered. Two other causes keep a resource idle on purpose. A Deferred resource waits until something activates it, and a resource whose requires predicate returns false stays Idle when it has no default value. Pass a defaultValue to the constructor to make it Ready instead.
A block does not appear at all
Its source is Disabled: the enabled predicate returned false, and a card bound to a disabled source renders nothing. Fix the predicate. Once it returns true, the card loads the source on its next render, and ActivateAsync or RefreshAsync loads it too, so a resource that nothing renders or refreshes stays Disabled.
Changing a filter does not change the data
Filters and resources are independent. The loader reads filter. when it runs, but nothing runs it when the filter changes. Subscribe to filter. and call RefreshAsync, as in Reload when a filter changes.
Tabs, filter pills, Refresh and the table sort do nothing
The page is rendered with Static SSR, where @onclick handlers cannot run. Add an interactive render mode to the page, for example @rendermode Interactive. See Platforms.
The view tabs switch but the content stays the same
KlyDashboardPage only draws the tabs and updates Dashboard.. It does not hide or show blocks. Branch on CurrentView in your markup, as in Load a block only when its tab opens.
The tabs do not show
They only render when the controller has at least two enabled views and ShowTabs is true. A single view gives no tab bar.
Download CSV does nothing in a .NET MAUI app
The button starts a browser download, which the MAUI web view does not support. Handle KlyDashboard and save the text with the MAUI file APIs.
The Error message shows an internal exception text
A card shows Source., which is the message of the exception thrown by the loader. Catch exceptions in the loader and throw one whose message is safe for users, as in Handle failures and skip queries that cannot run.
The queries run twice on a page
The page is prerendered and then rendered again when it becomes interactive, and each render loads the resources. Give the resources a json type info, attach the controller to Dashboard and load with LoadAsync, as in Hand the prerendered data to the interactive render. If a resource still loads twice, its data is over Klyroo or no longer fits in the budget the Klyroo libraries of the page share, KlyrooOptions. (a warning in the server log names it), it was registered after Attach, Attach got no render mode, a filter value differs between the two renders, or its loader was still running when the prerender ended. You can also disable prerendering for the page.
The block is unstyled or misaligned
Load _ after the Klyroo.UI stylesheets. The dashboard stylesheet only contains the utilities used by the dashboard markup and relies on the --klyroo-* tokens that Klyroo.UI defines. See Getting started.
A block does not update when its resource changes
Only KlyDashboardPage subscribes to the controller. A block placed outside a page re-renders when its parent does, so call StateHasChanged (through InvokeAsync when you are off the renderer thread) in the parent when controller. or resource. fires.
A parameter has no visible effect
Variant, Type, Order, Emphasis, CompareMode, Totals and the column kind are enums (Dashboard, Dashboard), so an unknown value does not compile. In a chart, a series Type only matters when the chart Type is Dashboard: a Dashboard series then makes the chart a bar-and-line chart, drawn without axes (see Known limitations).
A filter does not appear in the toolbar
The toolbar leaves out filters that are disabled or headless, and filters whose Kind is Custom when the page has no CustomFilter template. Give the page a CustomFilter to draw them, as in Filter by text, number or date.
The copy button of a details row does nothing
It calls navigator., which needs an interactive render mode and a secure context (HTTPS, or localhost during development). The browser can also refuse it without user permission; the button then does nothing and no error is shown.
The automatic refresh keeps running after the user leaves the page
Dashboard runs a timer until the controller is disposed. Implement IDisposable in the page that creates the controller and call _, as in Refresh on a timer.
Known limitations
- Chart. The chart block is drawn by
KlyChartof Klyroo.Dashboard's Klyroo.UI dependency, so it has whatKlyCharthas: axes, gridlines, tooltips, keyboard exploration, stacked, area and horizontal charts. It has no zoom, and a donut shows only the first series that is not a comparison and no negative value.KlyChartdraws one kind per chart and has no value labels, so a bar chart with alineseries, and a chart withShowLabels, use a compact drawing of the block's own: a zero baseline and negative values, but no axes, gridlines or tooltips, andStackedandHorizontaldo not apply.OnSelectmakes the bars, points and slices of aKlyChartdrawing selectable (click, or Enter and Space on the row the arrow keys are on); the compact drawing has no selectable marks, so it keeps a group of buttons under the drawing.IsComparisonseries are left out of the totals and of the compact drawing's buttons, but a pick on one in aKlyChartdrawing is reported as that series. For zoom or brushing, use a charting library inside aKlyDashboardCard. - Filters.
Remotefilters are drawn likeOptions: the library does not fetch anything, so load the options and assignItemsyourself, and the search box only filters the options already loaded. Text and number boxes apply their value when they lose focus or the user presses Enter. - Gauge. The
Dashboardvariant showsGauge Variant. Ring Targetas text only;Dashboardalso draws a marker.Gauge Variant. Bar - Cancellation. A refresh cancels the token of the load it supersedes and ignores its result, but a loader that does not pass the token on keeps running until it finishes.
- Language. The block texts come in the 12 locales of Klyroo.UI; only English and French are reviewed, the others are drafts. Text you pass in (titles, labels, filter options, the default
Yes/Nooptions of aBooleanfilter and the options of aComparisonfilter, whichKlyroo.creates without a locale) is never translated, andDashboard. Core DashboardFormat.is English unless you passFormat Relative Time Dashboard.Relative Time Texts - Number formats.
DashboardFormatuses the invariant culture unless you pass one. - Persistence is opt-in and small. Only resources with a
jsontype info and a controller attached toDashboardhand their data from the prerender to the interactive render, at most 8 KB per resource by default, counted as sent, within the 28 KB per page every Klyroo library shares, because an Interactive Server circuit receives it in one SignalR message. A larger resource loads again once.Persistence - NativeAOT. Only
Klyroo.declares it. See Platforms.Dashboard. Core
Questions
Can I use the controller without Blazor?
Yes. Klyroo. has no UI dependency. Register resources, call RefreshAsync and read Data, State and Error. That is also how the library tests its own logic.
How do I refresh automatically?
Set controller. to a number of seconds and dispose the controller with the page, as in Refresh on a timer. Data already loaded stays visible during the refresh.
Can several blocks share one resource?
Yes. A resource is just a source and its data: give the same Source to several blocks and read different parts of Data for each.
How do I show data without a controller?
Leave Source unset. The block renders its content immediately, or its empty state when the items are empty, and you manage the data yourself.
Does a resource keep its data when a refresh fails?
Yes. Data keeps the last successful value, but the card replaces the content with the error and a Retry button, so the user does not see stale numbers next to an error.
What does the page do with UpdatedAt?
When Description is not set, the page header shows Updated ... ago from the oldest UpdatedAt among the resources. Blocks show their own Updated footer when Freshness is true.
Which stylesheet mode does it support?
The documented setup loads the precompiled klyroo-dashboard. after the Klyroo.UI stylesheets. The package has no build integration for Tailwind compiled by your own app, and this documentation does not cover that case.