Email validation on specific domain property

2 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    12 posts
    Member since:
    Apr 2020

    Posted 10 Apr 2020 Link to this post

    Hi Team,

    We need to know whether there is any property available for Email control which can validate the specific domains only.

    I know this can be achieved via regex but curious to know if there is any out of the box property available since this scenario is common for email controls.




  2. Stefan
    Stefan avatar
    3008 posts

    Posted 10 Apr 2020 Link to this post

    Hello, Sanjay,

    Currently, the validation logic is outside of the components.

    This is because even if a specific validation case is common, our experience in this field had shown us that each use case usually has a small difference that will need modification. Also, we try not to separate cases, like common or uncommon as for the different projects a specific case can be very common compared to others.

    We follow the React best practices for reusable components and we allow easier integration with them. For example, if you need a specific email validation that will be commonly used in the application, a single component can be made that implements this as can be used across the application.

    Then later when a change is needed, instead of making that change to our built-in prop in all components that uses it, a change will be needed only in the custom validation component.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top