RadInputManager add property InputType
i use RequiredFieldValidator to validate radtextbox,SetFocusOnError="true" telerik version:2012Q3 first ,enter " ",validate event fire, display “notnull” sencond,enter “123” ,radtextbox not set value,validate event not fire asp.net textbox is ok code: <telerik:RadTextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false"> </telerik:RadTextBox> <%--<asp:TextBox ID="txtAppId" runat="server" Width="300" AutoPostBack="false"> </asp:TextBox>--%> <asp:RequiredFieldValidator ID="TextBoxRequiredFieldValidator" runat="server" Display="Dynamic" ControlToValidate="txtAppId" Text="NOT NULL" ErrorMessage="NOT NULL" SetFocusOnError="true"> </asp:RequiredFieldValidator>
If Czech keyboard layout is used it is not possible to enter any numeric value in the control.
It is browser bug, and the only possible fix we could do is to it by cancel the row event/stop propagation. But in this case we will broke the templates of the calendar, and they will not work anymore. Also could lead to some problems with the pickers and all places where the calendar is inside scrollable/drag-drag drop/ containers and the event need to bubble. So this will stay as limitation. In case the calendar is not used inside containers that have click interactions, this workaround is suggested for solving the issue: var cal = Telerik.Web.UI.Calendar.CalendarView.prototype; cal._och = cal._onClickHandler; cal._onClickHandler = function (ev) { this._och(ev); $telerik.cancelRawEvent(ev); }
This issue is related to a specific browser bug. In this case Internet Explorer does not allow changing the text alignment with JS. However, to workaround it please use the following CSS rule: html .RadInput .riTextBox { text-align: right; } For the specific state on the control you can add the corresponding CSS class (riEnabled / riFocused / riHover) on the same selector html .RadInput .riTextBox.riEnabled { text-align: right; }
Here is the basic code: <telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="MultiLine" Enabled="False"> </telerik:RadTextBox>
When using the RadMaskedTextBox control with the following setup, copy and paste in IE browsers (tested on IE11) does not work (nothing happens). <table width="100%" cellpadding="5px" cellspacing="5px" border="0px"> <tr> <td width="50%" align="right" valign="top"> <asp:Label ID="lbllicenseStateID" runat="server" EnableViewState="False" Text="driver’s license or<br> state identification number: <br>(two letters and six numbers)" meta:resourcekey="lbllicenseStateIDResource1" AssociatedControlID="licenseStateID"></asp:Label> </td> <td width="50%" valign="middle"> <telerik:RadMaskedTextBox PromptChar="" SelectionOnFocus="SelectAll" ID="licenseStateID" runat="server" MaxLength="8" TabIndex="1" CssClass="uppercase" Mask="LL######" DisplayMask="********" meta:resourcekey="licenseStateIDResource2" HideOnBlur="True" AutoCompleteType="Disabled" EnableAriaSupport="True"></telerik:RadMaskedTextBox> <asp:RequiredFieldValidator ID="rfvlicenseStateID" runat="server" ControlToValidate="licenseStateID" ForeColor="Red" Text="*" ErrorMessage="driver’s license or state identification number is required." meta:resourcekey="rfvlicenseStateIDResource1" SetFocusOnError="True"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="revCardNumber" runat="server" ControlToValidate="licenseStateID" ForeColor="Red" ValidationExpression="[a-zA-Z]{2}[0-9]{6}" ErrorMessage="driver’s license or state identification number format is incorrect." meta:resourcekey="revCardNumberResource1" Text="Format is incorrect." SetFocusOnError="True"></asp:RegularExpressionValidator> <asp:HiddenField ID="hdnlicenseStateID" runat="server" /> </td> </tr> </table>
When we use the control RadNumericTextBox, we met a issue: right alignment for text works under IE8, but doesn't work under IE 10, still left align in this control. we tried several methods to try fix this issue, <telerik:RadNumericTextBox runat="server" ID="control1" Type="Number" ShowSpinButtons="True" ButtonsPosition="Right" IncrementSettings-Step="10" NumberFormat-DecimalDigits="0" AutoPostBack="False" CssClass="RightPadding" EnabledStyle-CssClass="RightAligned"> <DisabledStyle HorizontalAlign="Right" CssClass="RightAligned" /> <EnabledStyle HorizontalAlign="Right" CssClass="RightAligned" /> <FocusedStyle HorizontalAlign="Right" CssClass="RightAligned" /> <ReadOnlyStyle HorizontalAlign="Right" CssClass="RightAligned" /> <InvalidStyle HorizontalAlign="Right" CssClass="RightAligned" /> <EmptyMessageStyle HorizontalAlign="Right" CssClass="RightAligned" /> <HoveredStyle HorizontalAlign="Right" CssClass="RightAligned" /> CSS: <style type="text/css"> .RightAligned { text-align: right !important; } .RightPadding { padding-right:2px !important } </style> but failed. Do you have solution to fix this issue? Expect your reply!