Javascript error on Mouseover a disabled radcombobox in a usercontrol, which act as an edit template of radgrid

2 posts, 0 answers
  1. ankool
    ankool avatar
    50 posts
    Member since:
    Apr 2007

    Posted 01 Jun 2010 Link to this post


    I am getting javacript errors while hovering over disabled radcomboboxes in a user control. I am using this usercontrol to display when I load radgrid edit template.
    I am enabling and disabling combos based on values in edited row in pageload of usercontrol.ascx.cs and on moving the mouse over the disabled combos, I get error "Value must be a DOM element"

    I did searched in telerik forums and located a post discussing similar issue and following solution was suggested there,
    <script type="text/javascript" language="Javascript">  
            var oldDomEvent = Sys.UI.DomEvent;  
            Sys.UI.DomEvent = function(rawEvent) {  
                if (rawEvent.srcElement && typeof (rawEvent.srcElement.getClientRects) == "undefined"return;  
                var evt = new oldDomEvent(rawEvent); for (var o in evt) this[o] = evt[o];  
            for (var o in oldDomEvent) Sys.UI.DomEvent[o] = oldDomEvent[o];     
     This solution do prevent error on mouse hover but throws other javascript errors ( error with browser event handlers or similar) when I perform update or close usercontrol or click on edit command of another row.
    Therefore , I need a better and stable solution than the script above to fix my error when I hover over disabled radcomboboxes.


  2. Simon
    Simon avatar
    2281 posts

    Posted 01 Jun 2010 Link to this post

    Hello ankool,

    Indeed using the patch in this complex case is the way to work around the bug (which is essentially a browser bug).

    I will try finding the cause of the new errors you are describing so that we fix them as well. Can you please provide me with the code of a page using the patch and showing the errors?

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Telerik UI for ASP.NET Core is out
Back to Top