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,
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
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> |
Therefore , I need a better and stable solution than the script above to fix my error when I hover over disabled radcomboboxes.
Thanks