Last Updated: 01 Jun 2016 12:55 by ADMIN
Created on: 13 Mar 2016 13:27
Category: UI for ASP.NET AJAX
Type: Feature Request
a textbox with built-in email validation (a rademailtextbox)
an email text control.
a control like a text box but that filters out the invalid characters that cannot be used in an email address. This control could be separated in 3 parts:


When the user hits the dot "." just before part3, a autocomplete feature can make it easier (faster) to select a frequently used prefex (like .com, .net, .org, etc...). This feature can be customized by the developer. The developer can turn it on or off. He can also make an own autocomplete list and eventually restrict to a list of suffixes.
Also when you want the user to type in an email address with a fix part 2 and part 3, the developer could customize it like this (e.g. when you want the user to enter only email addresses of, the developer can do this by design.

The three parts in the email address are required in order to have a valid email address.

As an extra feature the control can have a "IsValid()"-method that can be used by the developer to quickly check whether the email address is valid.

Server-side as well as client-side API make sense....

1 comment
Posted on: 01 Jun 2016 12:55
Hi Peter,

Thank you for your suggestion.

RadTextBox offers integration with the ASP.NET validators controls and the requested functionality can be achieved pretty easily with a RegularExpressionValidator as shown in this demo:

                            <telerik:RadTextBox RenderMode="Lightweight" ID="Radtextbox2" runat="server"></telerik:RadTextBox>
                            <asp:RegularExpressionValidator ID="emailValidator" runat="server" Display="Dynamic"
                                ErrorMessage="Please enter valid e-mail address" ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"
                            <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" Display="Dynamic"
                                ControlToValidate="Radtextbox2" ErrorMessage="Please enter an e-mail"></asp:RequiredFieldValidator>