Completed
Last Updated: 11 Aug 2021 18:40 by ADMIN
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).
2 comments
ADMIN
Rumen
Posted on: 11 Aug 2021 18:40

Please use the solution provided by Marin since it is a 100% properly working solution for this case.

DuelingCats
Posted on: 13 Mar 2013 17:19
I have this problem as well.