ImageButton still a valid ButtonType?

5 posts, 0 answers
  1. Mark Fitzpatrick
    Mark Fitzpatrick avatar
    36 posts
    Member since:
    Jan 2004

    Posted 06 May 2008 Link to this post

    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.
  2. George
    Admin
    George avatar
    859 posts

    Posted 10 May 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ChrisS
    ChrisS avatar
    50 posts
    Member since:
    Aug 2005

    Posted 15 May 2008 Link to this post

    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.
  5. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 13 Jun 2008 Link to this post

    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
  6. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 16 Jun 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017