Ticket T605725
Visible to All Users

how to manually validate a devextreme form items in a validation group in javascript.

created 7 years ago

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.

Comments (1)
DevExpress Support Team 7 years ago

    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.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.