Hi DevExpress Support,
I have a scenario where in I have a devextreme form shown below
HTML<fieldset>
@(Html.DevExtreme().Form()
.FormData(Model)
.LabelLocation(FormLabelLocation.Top)
.Items(items =>
{
items.AddSimple()
.DataField("Name")
.Editor(e => e.TextBox().ID("create-role-name-text-box").OnInput("onRoleNameInputChanged"))
.IsRequired(true);
items.AddSimple()
.DataField("Description")
.IsRequired(true);
})
.ValidationGroup("roleDetailsValidationGroup")
)
</fieldset>
and I need to perform the validation manually in javascript when a button is clicked, just want to ask on how to best solve this problem.
Thanks!
Jude Alquiza.
Hello Jude,
DevExtreme provides CustomRule to validate an editor manually. If this is not what you are looking for, please describe your scenario in greater detail.