I followed the default grid popup example with custom form but I'm stuck with a horizontal form. I need to manage column spanning with in the form elements (Bootstrap 4 + Kendo Material) so that fields with longer values can be displayed easily:
<
TelerikWindow
Visible
=
"@(SelectedProject != null)"
Modal
=
"true"
>
<
WindowTitle
>
@{
if (!string.IsNullOrWhiteSpace(SelectedProject?.ProjectNumber))
{
<
strong
>Project @SelectedProject.ProjectNumber</
strong
>
}
else
{
<
strong
>View Project</
strong
>
}
}
</
WindowTitle
>
<
WindowContent
>
<
EditForm
Model
=
"@SelectedProject"
OnValidSubmit
=
"@SaveProject"
class
=
"k-form"
>
<
DataAnnotationsValidator
/>
<
fieldset
>
<
legend
>Project Details</
legend
>
<
div
class
=
"form-row"
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectNumber"
Label
=
"Project Number"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectName"
Label
=
"Name"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
</
div
>
<
div
class
=
"col"
>
</
div
>
</
div
>
<
div
class
=
"form-row"
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProgrammeSponsor"
Label
=
"Sponsor"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProgrammeLead"
Label
=
"Lead"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectManager"
Label
=
"Manager"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
</
div
>
</
div
>
<
div
class
=
"form-row"
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.Status"
Label
=
"Status"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.Funding"
Label
=
"Fund"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.Gate"
Label
=
"Gate"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.DaDeliveryStage"
Label
=
"DA Status"
Width
=
"100%"
></
TelerikTextBox
>
</
div
>
</
div
>
</
fieldset
>
<
fieldset
>
<
legend
>Additional</
legend
>
<
div
class
=
"form-row"
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectNumber"
Label
=
"Project Number"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectName"
Label
=
"Name"
></
TelerikTextBox
>
</
div
>
</
div
>
</
fieldset
>
<
fieldset
>
<
legend
>Team Preferences</
legend
>
<
div
class
=
"form-row"
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectNumber"
Label
=
"Project Number"
></
TelerikTextBox
>
</
div
>
<
div
class
=
"col"
>
<
TelerikTextBox
@
bind-Value
=
"@SelectedProject.ProjectName"
Label
=
"Name"
></
TelerikTextBox
>
</
div
>
</
div
>
</
fieldset
>
<
div
class
=
"form-row"
>
<
ValidationSummary
/>
<
TelerikButton
Icon
=
"save"
Primary
=
"true"
ButtonType
=
"@ButtonType.Button"
>Close</
TelerikButton
>
</
div
>
</
EditForm
>
</
WindowContent
>
</
TelerikWindow
>
In order to show field evenly, I added empty col-divs. But I want to merge instead. For example, the first row, I want ProjectName to span three columns. I have a rather condensed form requirement here.