Blazor: Update the view when moving through steps in a SfDataForm and SfStepper

I’m creating a dataform using Syncfusion Dataform and I want to move by steps by displaying each section or FormGroup depending on the current step, here is part of the code:

this is the stepper, from the sf framework

<SfStepper StepClicked="StepClicked">
    <StepperSteps>
        <StepperStep Label="Unternehmensinformationen" Disabled=@showCompanyInfoStep IconCss="sf-icon-user"></StepperStep>
        <StepperStep Label="Geschäftsführung" Disabled=@showCompanyManagerStep></StepperStep>
        <StepperStep Label="Standort des Restaurant" Disabled=@showRestaurantLocationStep></StepperStep>
        <StepperStep Label="Welche Dienstleistungen bieten Sie an?" Disabled=@showServicesStep></StepperStep>
        <StepperStep Label="Finish" Disabled=@showFinishStep></StepperStep>
    </StepperSteps>
</SfStepper>

And here’s the DataForm

<SfDataForm ID="RegisterRestaurantForm"
            Model="@CompanyDetailsModel"
            ColumnCount="1"
            Width="50%"
            ColumnSpacing="25px"
            EnableFloatingLabel="false"
            AutoComplete="true"
            ValidationDisplayMode="FormValidationDisplay.Inline"
            ButtonsAlignment="FormButtonsAlignment.Center"
            OnValidSubmit="ValidSubmitHandler"
            OnSubmit="ValidSubmitHandler">
    <FormValidator>
        <DataAnnotationsValidator></DataAnnotationsValidator>
    </FormValidator>

    <FormItems>

        @if (@showCompanyInfoStep)
        {
            <FormGroup ColumnCount="4" LabelText="Unternehmensinformationen" ColumnSpacing="20px" CssClass="company-info">
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyName)" LabelText="Firmen Name (wie im Handelsregister eingetragen)" ColumnSpan="4" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyUID)" LabelText="UID (wie im Handelsregister eingetragen)" Placeholder="CHE-xxx.xxx.xxx" ColumnSpan="2" />
                <FormItem Field="@nameof(CompanyDetailsModel.MwStId)" LabelText="MWST-Nummer" Placeholder="CHE-xxx.xxx.xxx" ColumnSpan="2" />
            </FormGroup>
        }



        @if (showCompanyManagerStep)
        {
            <FormGroup ColumnCount="4" LabelText="Geschäftsführung" ColumnSpacing="20px" CssClass="businessmanager-info tab">
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManager)" LabelText="Geschäftsführer" ColumnSpan="4" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManagerMobilePhone)" LabelText="Mobiltelefonnummer" ColumnSpan="2" Placeholder="(076) 123 4567" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManagerEmail)" LabelText="E-Mail Adresse" ColumnSpan="2" Placeholder="[email protected]" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManagerAssistant)" LabelText="Assistenz Geschäftsführer" ColumnSpan="4" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManagerAssistantMobilePhone)" LabelText="Mobiltelefonnummer" ColumnSpan="2" Placeholder="(076) 123 4567" />
                <FormItem Field="@nameof(CompanyDetailsModel.CompanyGeneralManagerAssistantEmail)" LabelText="E-Mail Adresse" ColumnSpan="2" Placeholder="[email protected]" />
            </FormGroup>
        }

as you can see, depending on the conditional it renders a FormGroup, when running the page works as expected,

running application
but when moving into another step the previous one still rendered, and also when moving back it re-renders the FormGroup

enter image description here

I tried within the code updating the coniditional of each FormGroup using the event trigered by moving through steps

@code {


    private bool showCompanyInfoStep = true;
    private bool showCompanyManagerStep = false;
    private bool showRestaurantLocationStep = false;
    private bool showServicesStep = false;
    private bool showFinishStep = false;

    public void StepClicked(StepperClickedEventArgs args)
    {

        if (args.ActiveStep == 0)
        {
            showCompanyInfoStep = true;
            showCompanyManagerStep = false;
            showRestaurantLocationStep = false;
            showServicesStep = false;
            showFinishStep = false;

        }

        if (args.ActiveStep == 1)
        {
            showCompanyInfoStep = false;
            showCompanyManagerStep = true;
            showRestaurantLocationStep = false;
            showServicesStep = false;
            showFinishStep = false;
        }
        ...
        ...

So I guess the problem is that the dom is not being re-rendered, I tried using StateHasChanged(); native method but unsucessfully, it might be something I should know by now, but I’m also kind of new with blazor and .net overall, thanks in advanced!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật