Mark Fitzpatrick
Top achievements
Rank 1
Mark Fitzpatrick
asked on 06 May 2008, 09:43 PM
I noticed when upgrading to the ASP.Net Ajax version of RadSpell from ASP.Net 2007.2's RadSpell that I lost the ability to set the ButtonImage and ButtonHoverImage properties. I don't get any errors attempting to set these from the designer, but they no longer seem to work when setting the buttontype property to ImageButton. I still receive a LinkButton without any image decoration.
4 Answers, 1 is accepted
0
Hi Mark,
The current version of RadSpell for ASP.NET AJAX does not support the button type to be an image button. We will do our best to have this functionality implemented for one of the future control's updates.
In the meantime you can use the following approach:
I hope this helps.
Sincerely,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The current version of RadSpell for ASP.NET AJAX does not support the button type to be an image button. We will do our best to have this functionality implemented for one of the future control's updates.
In the meantime you can use the following approach:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
<telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="TextBox1" ButtonType="None" /> |
<asp:ImageButton ID="btnImg" runat="server" ImageUrl="~/someImage.jpg" OnClientClick="StartSpell(); return false;" /> |
<script type="text/javascript"> |
function StartSpell() |
{ |
var spell = $find('<%= RadSpell1.ClientID %>'); |
spell.startSpellCheck(); |
} |
</script> |
I hope this helps.
Sincerely,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
ChrisS
Top achievements
Rank 1
answered on 15 May 2008, 03:56 PM
Mark,
Initially I was given the same solution as you. After checking again I was given the following solution via style sheets:
Replace "Default" with the name of the skin you are using and it should work.
Hope this helps.
Initially I was given the same solution as you. After checking again I was given the following solution via style sheets:
<style type="text/css"> |
.RadSpell_Default_Ext |
{ |
border: solid 1px #191919; |
display: block; |
float: left; |
padding: 0 25px; |
text-align: center; |
font: bold 12px Arial, Verdana, Sans-serif; |
line-height: 21px; |
text-decoration: none; |
color: #dedede; |
background: url('SpellCheckBgr.gif') repeat-x; |
} |
.RadSpell_Default_Ext:hover |
{ |
color: white; |
} |
</style> |
Replace "Default" with the name of the skin you are using and it should work.
Hope this helps.
0
david
Top achievements
Rank 1
answered on 13 Jun 2008, 05:23 PM
How do you use this style, do you set the cssclass = RadSpell_Office2007_Ext" and use the buttontype=imagebutton?
I still get a regular button when I do this?
thanks
I still get a regular button when I do this?
thanks
0
Hi David,
Please, find attached a sample example demonstrating how to set the css classes and apply them to a link button that pops up the spellchecker on click.
Sincerely,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Please, find attached a sample example demonstrating how to set the css classes and apply them to a link button that pops up the spellchecker on click.
Sincerely,
Rumen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center