I am using Rad Controls for ASP.NET release 2008.2.804.20 and I am getting a strange behavior for Display=Dynamic, when I have tried it on several controls, when used with standard .NET validators.
For the .NET controls,
The RequiredFieldValidator checks to make sure the ControlToValidate has a value, any value. The Display property allows us to control the space taken by the control when there is no error -- i.e Display=Dynamic collapses the space, while Display=Static reserves it.
However, when I use Display=Dynamic on a required field validitor for Rad Text Box, It displays the message all the time and it is not dynamic. Even when the entry is valid, the message is displayed.
<telerik:RadTextBox ID="State" runat="server" TabIndex="5"
SelectionOnFocus="CaretToBeginning" >
<FocusedStyle BackColor="#F1F6FC" />
</telerik:RadTextBox>
<div class="valRequired">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="State" SetFocusOnError="True" Display="Dynamic">Required
</asp:RequiredFieldValidator>
</div>
In contrast
<asp:TextBox ID="City" runat="server" TabIndex="4" ></asp:TextBox>
<div class="block valRequired">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="City" Display="Dynamic" SetFocusOnError="True">Required
</asp:RequiredFieldValidator>
</div>
works as expected.
How do I get your controls to work as expected with Display="Dynamic"?
Keith E.
For the .NET controls,
The RequiredFieldValidator checks to make sure the ControlToValidate has a value, any value. The Display property allows us to control the space taken by the control when there is no error -- i.e Display=Dynamic collapses the space, while Display=Static reserves it.
However, when I use Display=Dynamic on a required field validitor for Rad Text Box, It displays the message all the time and it is not dynamic. Even when the entry is valid, the message is displayed.
<telerik:RadTextBox ID="State" runat="server" TabIndex="5"
SelectionOnFocus="CaretToBeginning" >
<FocusedStyle BackColor="#F1F6FC" />
</telerik:RadTextBox>
<div class="valRequired">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="State" SetFocusOnError="True" Display="Dynamic">Required
</asp:RequiredFieldValidator>
</div>
In contrast
<asp:TextBox ID="City" runat="server" TabIndex="4" ></asp:TextBox>
<div class="block valRequired">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="City" Display="Dynamic" SetFocusOnError="True">Required
</asp:RequiredFieldValidator>
</div>
works as expected.
How do I get your controls to work as expected with Display="Dynamic"?
Keith E.