Sep 06, 2017, 10:01 AM
[CLOSED] Problem with large forms, validation and scroll
Editar
Hi, i need help for this topic.
When i have a large form(scroll form) when a field fail his validation putting the messege under the field,if the layout has scroll, he scroll to top
Why this behaviour?? Any solution to this?
Mini Example
Regards.
Hi, i need help for this topic.
When i have a large form(scroll form) when a field fail his validation putting the messege under the field,if the layout has scroll, he scroll to top
Why this behaviour?? Any solution to this?
Mini Example
@{
var container1 = Html.X().FieldContainer()
.Layout(LayoutType.HBox)
.FieldDefaults(fd => fd.LabelAlign = LabelAlign.Top)
.PaddingSpec("10 10 0 100")
.Flex(1)
.Items(
Html.X().TextFieldFor(m => m.DE_NOMBRE)
.PaddingSpec("3 10 3 10")
.MsgTarget(MessageTarget.Under)
.MaxWidth(170),
Html.X().TextFieldFor(m => m.DE_PRIMER_APELLIDO)
.PaddingSpec("3 10 3 10")
.MsgTarget(MessageTarget.Under)
.MaxWidth(170),
Html.X().TextFieldFor(m => m.DE_SEGUNDO_APELLIDO)
.PaddingSpec("3 10 3 10")
.MsgTarget(MessageTarget.Under)
.MaxWidth(170)
);
}
@(Html.X().FormPanel()
.Layout(LayoutType.Center)
.Region(Region.Center)
.OverflowY(Overflow.Auto)
.ID("frm_registro")
.Items(
Html.X().AntiForgeryField(),
Html.X().FieldContainer()
.ID("pnl_registro")
.Width(800)
.Layout(LayoutType.VBox)
.Items(
container1,
container2,
container3,
container4
)
)
)
Regards.
Last edited by fabricio.murta; Oct 20, 2017 at 5:58 PM.
Reason: no feedback from the user in 7+ days