Move AddRadzenComponents in theme registration as RadzenTheme needs it.

This commit is contained in:
Atanas Korchev
2025-10-27 11:15:15 +02:00
parent d73dce8804
commit 2693487f81
2 changed files with 15 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ namespace Radzen.Blazor
/// A scheduler component for displaying and managing calendar appointments in multiple view types (day, week, month, year).
/// RadzenScheduler provides a rich calendar interface with drag-and-drop, inline editing, recurring events, and customizable views.
/// Displays time-based events in various calendar views, ideal for appointment booking, event calendars, resource scheduling, or any time-based data visualization.
/// Features multiple views (Day, Week, Month, Year Planner, Year Timeline), drag & drop to move appointments between time slots, resize to adjust appointment duration by dragging edges,
/// Features multiple views (Day, Week, Month, Year Planner, Year Timeline), drag & drop to move appointments between time slots, resize to adjust appointment duration by dragging edges,
/// inline editing to create and edit appointments directly in the calendar, tooltips for quick info on hover, customizable appointment templates,
/// support for all-day and multi-day events, and timezone-aware appointments.
/// Define data properties using StartProperty, EndProperty, and TextProperty. Add view components (RadzenDayView, RadzenWeekView, RadzenMonthView) as child content.

View File

@@ -40,6 +40,13 @@ These instructions assume the new application layout which uses rendering modes
<pre class="rz-p-4">
<code>&lt;RadzenTheme Theme="material" /&gt;
</code>
</pre>
<RadzenText>
Open the <code>Program.cs</code> file and include:
</RadzenText>
<pre class="rz-p-4">
<code>builder.Services.AddRadzenComponents();
</code>
</pre>
@IncludeJavaScript(("App.razor", CurrentVersion))
@UseComponent(CurrentVersion)
@@ -53,13 +60,6 @@ These instructions assume the new application layout which uses rendering modes
<RadzenAlert AlertStyle="AlertStyle.Info" Variant="Variant.Flat" Shade="Shade.Lighter" AllowClose="false">
Set the <code>@@rendermode</code> attribute to the render mode of your application e.g. <code>InteractiveServer</code>, <code>InteractiveWebAssembly</code> or <code>InteractiveAuto</code>.
</RadzenAlert>
<RadzenText>
Open the <code>Program.cs</code> file and include:
</RadzenText>
<pre class="rz-p-4">
<code>builder.Services.AddRadzenComponents();
</code>
</pre>
@Next
</div>
</RadzenTabsItem>
@@ -224,6 +224,13 @@ These instructions assume the new application layout which uses rendering modes
<pre class="rz-p-4">
<code>&lt;component type="typeof(RadzenTheme)" render-mode="@(args.renderMode)" param-Theme="@@("material")" /&gt;
</code>
</pre>
<RadzenText>
Open the <code>Program.cs</code> file and include:
</RadzenText>
<pre class="rz-p-4">
<code>builder.Services.AddRadzenComponents();
</code>
</pre>
</text>;
@@ -259,13 +266,6 @@ These instructions assume the new application layout which uses rendering modes
Make sure that you do not nest <code>RadzenComponents</code> inside a positioned element (i.e. with position: relative, position: absolute or position: fixed).
To be safe you can add them at the end of the layout file after all other elements.
</RadzenAlert>
<RadzenText>
Open the <code>Program.cs</code> file and include:
</RadzenText>
<pre class="rz-p-4">
<code>builder.Services.AddRadzenComponents();
</code>
</pre>
</text>;
RenderFragment Next =
@<text>