This is a migrated thread and some comments may be shown as answers.

Toolbar error in IE8

2 Answers 108 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 24 Mar 2009, 09:14 AM
I have a page with a RadToolBar which works perfectly in IE7 and Firefox 3 but having installed IE8 it throws a script error when a button is clicked.

I have created a stripped down page with just a toolbar in and I am getting the same error.  The error occurs when clicking on a dropdown item from a RadToolBarSplitButton or a RadToolBarDropDown. 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="NoPanes.aspx.vb" Inherits="TelerikSplitterTest.NoPanes" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
  <title></title
 
  <script type="text/javascript"
    function toolbarOnClientClicking(sender, args) { 
      var button = args.get_item(); 
      alert('you clicked ' + button.get_text()); 
    } 
  </script> 
 
</head> 
<body> 
  <form id="form1" runat="server"
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
  </telerik:RadScriptManager> 
  <div> 
    <telerik:RadToolBar ID="RadToolBar1" runat="server" dir="rtl" Font-Size="5px" OnClientButtonClicking="toolbarOnClientClicking"
      <Items> 
        <telerik:RadToolBarButton Text="Button One" /> 
        <telerik:RadToolBarSplitButton Text="Button Two" EnableDefaultButton="false"
          <Buttons> 
            <telerik:RadToolBarButton Text="Option One" /> 
            <telerik:RadToolBarButton Text="Option Two" /> 
          </Buttons> 
        </telerik:RadToolBarSplitButton> 
        <telerik:RadToolBarDropDown Text="Button Three"
          <Buttons> 
            <telerik:RadToolBarButton Text="Option One" /> 
            <telerik:RadToolBarButton Text="Option Two" /> 
            <telerik:RadToolBarButton Text="Option Three" /> 
            <telerik:RadToolBarButton Text="Option Four" /> 
          </Buttons> 
        </telerik:RadToolBarDropDown> 
      </Items> 
    </telerik:RadToolBar> 
  </div> 
  </form> 
</body> 
</html> 
 

According to the IE8 script debugger the error is:

  Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3aa7e79140, line 4240 character 1 

The line the error points to is
this.get_animationContainer().style.zIndex=this._originalZIndex; 

The error is thrown as the dropdown closes.

I'm using Visual Studio 2008 and the project is using .NET Framework 3.5 SP1 with the 2009.1.311.35 version of the Telerik.Web.UI.dll from the Bin35 folder.

Is this a known error and is there a fix for this?

Thanks,
Nick


2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Mar 2009, 09:16 AM
Hello Nick,

This is a known issue with IE8 and RadToolBar. It will be addressed with the upcoming service pack which is due next week. Till then you can use the compliance meta tag to make IE8 render your page in IE7 mode:

<meta http-equiv="X-UA-Compatible" content="IE=7" />


Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Nick
Top achievements
Rank 1
answered on 24 Mar 2009, 09:22 AM
Thanks for the swift response. 

I tried running the page in Compatibility Mode and it still has the same error,  so I'll wait for the service pack.

Cheers,
Nick
Tags
ToolBar
Asked by
Nick
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nick
Top achievements
Rank 1
Share this question
or