Object doesn't support property or method 'attachEvent'

1 Answer 329 Views
Accessibility Ajax ScriptManager and StyleSheetManager
Ian
Top achievements
Rank 1
Ian asked on 19 Jan 2022, 07:43 AM

I'm getting this error whenever I click a button on the page.

This only happens when you're running the aspx page through a windows forms application that has a browser control.
If I load this page directly from any normal browser it works fine.

Page is running:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>

 

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 21 Jan 2022, 11:38 AM

Hello Ian,

The problems is due to that the WebBrowser control renders the page in compatibility mode of Internet Explorer. As noted in the Browser Support page the compatibility mode is not supported by UI for ASP.NET AJAX anymore since it renders the page in IE7 mode and introduces a lot of compatibility problems including positioning of floating elements (it was supported back in 2008).

What you can try to resolve the issue is to:

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

anna
Top achievements
Rank 1
Bronze
Iron
commented on 21 Jan 2022, 12:45 PM

Attached File : ex.png

telerik:RadGrid (ASP.NET Web)

I want to get the header name of the column clicked by the user with the mouse.

<ClientSettings EnablePostBackOnRowClick="true">  
<Selecting AllowRowSelect="true" /> 
</ClientSettings>   

 protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
        {
            var dataItem = gv.SelectedItems[0] as GridDataItem;
            if (dataItem != null)
            {
                var name = dataItem["ColUniqueName"].Text;
            }
        }
The above source code is not what I want.
Because the user specified ColUniqueName .
I want to automatically get the coordinates of Row and Column&Column HeaderName when the mouse cursor is placed on the Cell of RadGrid.

Vessy
Telerik team
commented on 24 Jan 2022, 06:04 PM

Hello anna,

We would like to kindly ask you to post your questions only once and make sure that the chosen threads are matching the problem faced by you. You can find the answer to the question above in the thread below:

https://www.telerik.com/forums/radgrid-i-want-to-automatically-get-the-coordinates-of-row-and-column-when-the-mouse-cursor-is-placed-on-the-cell-of-radgrid

Tags
Accessibility Ajax ScriptManager and StyleSheetManager
Asked by
Ian
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or