Unplanned
Last Updated: 16 Aug 2022 06:10 by ADMIN
Eric
Created on: 03 Aug 2022 06:50
Category: Wizard
Type: Feature Request
1
Scrolllable stepper

Hi

We have to muchs steps in our wizards

So it would be nice to make the stepper scrollable

Example:

10 steps

visual are 1..7 , if i'm on step 4 , step 1 dissappears and 8 will be visible etc....

Also small < > added to the stepper could be uses to moves quickly throug the steps

This would be a nice enhancement

1 comment
ADMIN
Dimo
Posted on: 05 Aug 2022 14:41

Hi Eric,

I am converting this to a feature request, and here is a workaround:

<TelerikWizard Width="600px" Height="300px"
               @bind-Value="@WizardStep"
               Class="scrollable-stepper">
    <WizardSettings>
        <WizardStepperSettings />
    </WizardSettings>
    <WizardSteps>
        @for (int i = 1; i <= 20; i++)
        {
            <WizardStep Text="@($"{i}")" Label="@( $"Label {i}" )" @key="@( $"key{i}" )">
                <Content>
                    <p>Step content</p>
                </Content>
            </WizardStep>
        }
    </WizardSteps>
</TelerikWizard>

<style>
    .scrollable-stepper {
        border: 1px solid red;
    }

    .scrollable-stepper .k-stepper {
        overflow-y: hidden;
        overflow-x: auto;
        padding-bottom: 1em;
    }

    .scrollable-stepper .k-stepper .k-step-list-horizontal {
        width: 1600px;
    }

        .scrollable-stepper .k-stepper .k-progressbar {
            width: 1520px; /*(step list width - 1 step width)*/
        }

</style>

@code {
    int WizardStep = 0;
}

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.