This is a migrated thread and some comments may be shown as answers.

ImageButton still a valid ButtonType?

4 Answers 114 Views
Spell
This is a migrated thread and some comments may be shown as answers.
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

Sort by
0
George
Telerik team
answered on 10 May 2008, 02:29 PM
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:
<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:

    <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
0
Rumen
Telerik team
answered on 16 Jun 2008, 07:17 AM
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
Tags
Spell
Asked by
Mark Fitzpatrick
Top achievements
Rank 1
Answers by
George
Telerik team
ChrisS
Top achievements
Rank 1
david
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or