Fields in a form group not aligning
Hi I was wondering if there is any way for me to get these fields in the form group "Details" to align the correctly.
This is the code that I have for this data form:
<FormGroup LabelText="Details" CssClass="details-group" ColumnSpan="2">
<FormItem Field="@nameof(Case.CaseType)" LabelText="Case Type:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.CaseSubtype)" LabelText="Subtype:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.OurRole)" LabelText="We Are:">
<Template>
<label class="custom-label"> We Are:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@ourRoles" @bind-Value="caseDetail.OurRole">
<DropDownListFieldSettings Text="Our Role"></DropDownListFieldSettings>
</SfDropDownList>
</Template>
</FormItem>
<FormItem Field="@nameof(Case.CaseStatus)" LabelText="Status:" IsEnabled="true" CssClass="custom-label">
<Template>
<label class="custom-label">Status:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@caseStatuses" @bind-Value="caseDetail.CaseStatus">
</SfDropDownList>
</Template>
</FormItem>
<FormItem Field="@nameof(Case.CaseSubstatus)" LabelText="Status Subtype:" IsEnabled="true" CssClass="custom-label">
<Template>
<label class="custom-label">Case Substatus:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@caseSubstatuses" @bind-Value="caseDetail.CaseSubstatus"></SfDropDownList>
</Template>
</FormItem>
<FormItem Field="@nameof(Case.ReferralType)" LabelText="Refferal Type:" IsEnabled="true" CssClass="custom-label">
<Template>
<label class="custom-label">Referral Type:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@referralTypes" @bind-Value="caseDetail.ReferralType">
</SfDropDownList>
</Template>
</FormItem>
<FormItem Field="@nameof(Case.ReferralSubtype)" LabelText="Subtype:" IsEnabled="true" CssClass="custom-label">
<Template>
<label class="custom-label">Referral Subtype:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@referralSubtypes" @bind-Value="caseDetail.ReferralSubtype"></SfDropDownList>
</Template>
</FormItem>
<FormItem Field="@nameof(Case.OtherFileNumber)" LabelText="Other File #:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.CaseOpened)" LabelText="Opened:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.CaseClosed)" LabelText="Closed:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.Intake)" LabelText="Intake Date:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.PhysicalFileRetentionDate)" LabelText="File Retention:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.PhysicalFileLocation)" LabelText="File Location:" IsEnabled="true" CssClass="custom-label"></FormItem>
<FormItem Field="@nameof(Case.FirmDepartment)" LabelText="Department:" IsEnabled="true" CssClass="custom-label">
<Template>
<label class="custom-label">Firm Department:</label>
<SfDropDownList TValue="string" TItem="string" DataSource="@firmDepartments" @bind-Value="caseDetail.FirmDepartment"></SfDropDownList>
</Template>
</FormItem>
</FormGroup>
I would appreciate any help you can offer.
Thanks!
Hi Zack Davis,
Thank you for reaching out. We understand that you're having trouble aligning the fields in the "Details" form group. We have reviewed your code and created a sample configuration to help with alignment:
@using Syncfusion.Blazor.DataForm |
Please check the screenshot:
For more details on form group alignment and column layout, please refer to our documentation:
If you have any further questions or need additional assistance, please let us know.
- 1 Reply
- 2 Participants
-
ZD Zack Davis
- Aug 16, 2024 10:20 PM UTC
- Aug 20, 2024 01:50 PM UTC