Hi,
I have problem with typing into RadMaskedTextBox. I detected that problem is causing MaxLength property. In IE11, Chrome and Firefox, everything is working fine, but in Edge user couldn't type text into input.
<telerik:RadMaskedTextBox ID="txt_PFR1" runat="server" Width="110px" TabIndex="1"
MaxLength="5" Mask="PFRaa">
</telerik:RadMaskedTextBox>
Result text should be PFR and two characters, e.g. PFR12 or PFRaX, or...
I suppose that this property is useless in this control instead of RadTextBox. Could you please remove it, if it doesn't have any other usage purpose ?
Regards
Vasssek
The role=textbox is set to the wrapper element instead of the input element itself. That confuses the screen readers such as JAWS, which leads to the Form Fields dialog to skip them.
As a temporary workaround, the role of the wrapper element with class RadInput can be set to "presentation"
<script>
function pageLoadHandler() {
$telerik.$(".RadInput").attr("role", "presentation")
// Sys.Application.remove_load(pageLoadHandler);
}
Sys.Application.add_load(pageLoadHandler);
</script>
Or using the following script:
var WebARIAHelper = (function ($) {
// Assign default ARIA roles to desired elements
function AssignDefaultARIARoles(element) {
element = (element || document.body);
// TFS 110547 - Mark SPAN/DIV around RadInput elements as presentation to avoid confusing JAWS form field dialog
$("span.RadInput, div.RadInput", element).attr("role", "presentation");
}
// Handle AJAX EndRequest event to process any new content
function WebARIAHelperEndRequestHandler(sender, args) {
if (args.get_error() == null) {
// Make sure all page controls can finish their ready event processes before looking at DOM
window.setTimeout(function () {
AssignDefaultARIARoles();
}, 10);
}
}
$(function () {
// Make sure all page controls can finish their ready event processes before looking at DOM
window.setTimeout(function () {
AssignDefaultARIARoles();
}, 10);
if (window.Sys && Sys.WebForms && Sys.WebForms.PageRequestManager) {
var instance = Sys.WebForms.PageRequestManager.getInstance();
if (instance) instance.add_endRequest(WebARIAHelperEndRequestHandler);
}
});
return null;
}
)($ || $telerik.$);
When a Telerik RadTextBox contains a line break, a postback is triggered any time focus is lost on the textbox, even if the text hasn’t been changed. If a normal ASP Textbox is used instead of a Telerik one, no postback occurs if the text hasn’t been changed, even if the text contains a line break. We need the Telerik RadTextBox to behave like the ASP Textbox.
See the attached file for a simple example of this behavior, and let me know if you have any other questions about it.
ADMIN: Attached is also a workaround.