Search code examples
asp.netvalidationinputtelerikrad-controls

Why does emptymessage property do auto validation?


I am using Radnumericbox like that,

 <telerik:RadNumericTextBox CssClass="app-input" ID="txtUnivaPerfTreshold" runat="server" MaxValue="100" MinValue="1" MaxLength="4" Value="30" EmptyMessage="between %1 - %100" Width="130px" Type="Percent">

When I add EmptyMessage property to radnumerictextbox , on page submit textbox do auto validation. And red border appears out of textbox. If I dont add empty massage property to radnumerictextbox on page submit textbox is not do autovalidation. I want to use Empty message property but I dont want any validation and red border.

how can I do that?


Solution

  • I find the solution. If you are EmptyMessage and MaxLenght property in same item, telerik use autovalidation it's own. If you delete one of EmptyMessage or MaxLenght propery in item, autovalidation does'nt work. There is no way for use EmptyMessage and MaxLenght in same item without autovalidation.

    You find details in here : http://www.telerik.com/forums/about-empty-message-property