Skip to content

Two-way Billing EditorItems #4743

Answered by ArgoZhang
KisaPs asked this question in Q&A
Nov 26, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@KisaPs

I made some changes for your reference.

BootstrapBlazorServerEditForm.zip

create a component for partial render

SaleTypeEditorItem

@using System.Diagnostics.CodeAnalysis

<div class="col-12 col-sm-6 col-md-6">
    <Select @bind-Value="Model.SaleType"></Select>
</div>

@if (Model.SaleType != SaleType.Type1)
{
    <div class="col-12 col-sm-6 col-md-6">
        <BootstrapInput @bind-Value="Model.TypeDescription1"></BootstrapInput>
    </div>
}
@if (Model.SaleType != SaleType.Type2)
{
    <div class="col-12 col-sm-6 col-md-6">
        <BootstrapInput @bind-Value="Model.TypeDescription2"></BootstrapInput>
    </div>
}
@if (Model.SaleType != SaleType.Type3)
{
    <div class="col-12 col-…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KisaPs
Comment options

Answer selected by KisaPs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants