Approved
Last Updated: 04 Sep 2013 12:10 by DuelingCats
ADMIN
Marin Bratanov
Created on: 07 Mar 2013 13:40
Category: Spell
Type: Bug Report
1
FIX Setting Enabled="false" for RadSpell does not have effect on the control
FIX Setting Enalbled="false" for RadSpell does not have effect on the control.

The disabled="disabled" attribute is applied to the main wrapper of the control instead of to the button.

The following script is a possible workaround:
	<asp:TextBox ID="Textbox1" runat="server" />
	<telerik:RadSpell ID="RadSpell1" ControlToCheck="Textbox1" Enabled="false" OnClientLoad="OnClientLoad"
		runat="server" />
	<script type="text/javascript">
		function OnClientLoad(sender, args)
		{
			if ($telerik.$(sender.get_element()).attr("disabled") == "disabled")
			{
				$telerik.$("input[type='button']", sender.get_element()).attr("disabled", "disabled");
			}
		}
	</script>

It will work as-is for a regular push button. If the ButtonType is changed the script needs to change to get the appropriate element (e.g. anchor for the LinkButton).
1 comment
DuelingCats
Posted on: 13 Mar 2013 17:19
I have this problem as well.