i open a radwindow with radbutton1. I asign the OpenerElementID="radbutton1".
When i disable the radbutton1.enabled="false" i can still open the radwindow when i click on radbutton1.
Whats wrong here.
Thanks for any help
i tried both .net 3.5 and .net 4.0 Telerik Controls. The Problem is if i use IE 9 with Browser Mode and Doc Mode IE9
then i can still open the radwindow when the radbutton is disabled - on click.
If i use IE 8, Firefox it does work
answered on 14 Sep 2012, 10:59 AM
Let me shed some light on the matter.
The disabled attribute is relevant only for input elements, while the RadButtons wrapper is an anchor element. This means that, according to specifications, setting disabled="disabled" should not affect its behavior. This works like it is supposed to only in IE and this is why you are experiencing the described behavior.
The RadWindow's OpenerElementID property is a simple one that only attaches an event handler for the onclick event to the target. When the target is disabled this event is not fired by the browser (e.g. for a regular button type submit). For an anchor, however, the event will still be fired and the RadWindow will be shown which is the case with the RadButton.
What I can advise is that you use the OnClientClicked or OnClientClicking events of the RadButton (often along with the AutoPostBack property) to attach a function that will open the RadWindow. This help article explains how a RadWindow can be opened and this blog post explains how to work with the RadButton events.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.