Approved
Last Updated: 03 Jan 2019 10:33 by ADMIN

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.

Approved
Last Updated: 05 Aug 2019 09:43 by ADMIN

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.$);

Completed
Last Updated: 26 Mar 2019 14:50 by ADMIN
Created by: miksh
Comments: 1
Category: Input
Type: Bug Report
0
Change value by mousewheel does not work in Edge (Microsoft Edge 44.17763.1.0, Microsoft EdgeHTML 18.17763), Chrome is ok
try here:

https://demos.telerik.com/aspnet-ajax/numerictextbox/overview/defaultcs.aspx