Hi, I have a grid which is setup as batch edit. One of the columns defined the following way:
<telerik:GridTemplateColumn HeaderText="% Local" HeaderStyle-Width="50px" SortExpression="LPC" UniqueName="LPC"
DataField="LPC">
<ItemTemplate>
<asp:Label runat="server" ID="lblLPC" Text='<%# Eval("LPC", "{0:P2}") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<span>
<telerik:RadNumericTextBox ID="tbLPC" Width="50px" runat="server">
</telerik:RadNumericTextBox>
<span style="color: Red">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
ControlToValidate="tbLPC" ErrorMessage="*" runat="server" Display="Dynamic"
ToolTip="Required"
style="color:Red;font-size:30px; font-weight:bold;">
</asp:RequiredFieldValidator>
<asp:RangeValidator ID="rvtbLPC" runat="server"
ControlToValidate="tbLPC" ToolTip="Must be numeric value between 0 and 1"
ErrorMessage="*" style="color:Red;font-size:30px; font-weight:bold;"
MinimumValue="0" MaximumValue="1" Display="Dynamic">
</asp:RangeValidator>
</span>
</span>
</EditItemTemplate>
</telerik:GridTemplateColumn>
Validation always think that field is invalid. I even tried to increase MaximumValue to 100.
Please
<telerik:GridTemplateColumn HeaderText="% Local" HeaderStyle-Width="50px" SortExpression="LPC" UniqueName="LPC"
DataField="LPC">
<ItemTemplate>
<asp:Label runat="server" ID="lblLPC" Text='<%# Eval("LPC", "{0:P2}") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<span>
<telerik:RadNumericTextBox ID="tbLPC" Width="50px" runat="server">
</telerik:RadNumericTextBox>
<span style="color: Red">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
ControlToValidate="tbLPC" ErrorMessage="*" runat="server" Display="Dynamic"
ToolTip="Required"
style="color:Red;font-size:30px; font-weight:bold;">
</asp:RequiredFieldValidator>
<asp:RangeValidator ID="rvtbLPC" runat="server"
ControlToValidate="tbLPC" ToolTip="Must be numeric value between 0 and 1"
ErrorMessage="*" style="color:Red;font-size:30px; font-weight:bold;"
MinimumValue="0" MaximumValue="1" Display="Dynamic">
</asp:RangeValidator>
</span>
</span>
</EditItemTemplate>
</telerik:GridTemplateColumn>
Validation always think that field is invalid. I even tried to increase MaximumValue to 100.
Please