This is a migrated thread and some comments may be shown as answers.

Email validation on specific domain property

1 Answer 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 10 Apr 2020, 08:26 AM

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.

Regards,

Sanjay

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Apr 2020, 08:56 AM

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.

Regards,
Stefan
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.
Tags
General Discussions
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or