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

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

1 Answer 17 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
ankool
Top achievements
Rank 1
ankool asked on 01 Jun 2010, 12:07 PM
Hi,

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];     
    </script> 
 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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 01 Jun 2010, 02:21 PM
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,
Simon
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.
Tags
ComboBox
Asked by
ankool
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or