I have a wizard that is defined like this:
<TelerikWizard @bind-Value="step" Height="100%" Width="100%">
<WizardSteps>
<WizardStep Label="Information" OnChange="OnWizardStepChange">
<Content>
</Content>
</WizardStep>
@if (showMapping)
{
<WizardStep Label="Column Mapping" OnChange="OnWizardStepChange">
<Content>
</Content>
</WizardStep>
}
@if (showPreview)
{
<WizardStep Label="Preview" OnChange="OnWizardStepChange">
<Content>
</Content>
</WizardStep>
}
<WizardStep Label="Validation" OnChange="OnWizardStepChange">
<Content>
</Content>
</WizardStep>
</WizardSteps>
<WizardButtons>
@{
var index = context;
int lastStep = 3;
if (!showMapping) { lastStep -= 1; }
if (!showPreview) { lastStep -= 1; }
if (index > 0)
{
<TelerikButton ButtonType="ButtonType.Button" OnClick="@(() => step -= 1)">Previous</TelerikButton>
}
if (index < lastStep)
{
<TelerikButton ButtonType="ButtonType.Button" OnClick="@(() => step += 1)">Next</TelerikButton>
}
if (index == lastStep)
{
<TelerikButton ButtonType="ButtonType.Button" OnClick="@CreateImport">Import</TelerikButton>
}
}
</WizardButtons>
</TelerikWizard>
When I try to load the page, the Wizard is giving me the following error:
[12:06:18 WRN] Unhandled exception rendering component: Value cannot be null. (Parameter 'format') System.ArgumentNullException: Value cannot be null. (Parameter 'format') at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.Format(String format, Object arg0, Object arg1) at Telerik.Blazor.Components.TelerikWizard.get_PagerMessage() at Telerik.Blazor.Components.TelerikWizard.BuildRenderTree(RenderTreeBuilder __builder) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment) at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()