Known Issues and Breaking Changes - AutoCompleteBox

Thread is closed for posting
1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1698 posts
    Member since:
    Oct 2004

    Posted 05 Mar 2014 Link to this post

    Q1 2014 (Version number: 2014.1.225)


    Control is throwing a JavaScript error on IE7:  “Could not get the fontWeight property. Invalid argument”.


    This issue will be resolved in the first internal build. If you do not want to use an internal build the following JavaScript and CSS fix will resolve the issue:
    <script type="text/javascript">
        Telerik.Web.UI.RadAutoCompleteBox.DropDown.prototype._createTextSizingDiv = function (sourceElement) {
            var textSizingDiv = document.createElement("div"),
                fontStyles = ["font-size", "font-family", "font-weight", "font-variant", "font-style", "text-transform"],
                fontStylesProperties = ["fontSize", "fontFamily", "fontWeight", "fontVariant", "fontStyle", "textTransform"];
   = 'absolute';
   = 'block';
   = 'hidden';
            // In IE 7/8 getComputedStyle takes styles in format "fontSize", while in other browsers
            // it must be "font-size". After fixing the getComputedStyles implementation to resolve
            // the format, remove this workaround
            if ($telerik.getComputedStyle(sourceElement, fontStyles[0], null) === null) {
                fontStyles = fontStylesProperties;
            for (var i = 0, length = fontStyles.length; i < length; i++) {
      [fontStylesProperties[i]] = $telerik.getComputedStyle(sourceElement, fontStyles[i], null);
            return textSizingDiv;

    <style type="text/css">
        html .RadAutoCompleteBox .racTokenList {
            display: block;
Back to Top