problem with icon on the button

4 posts, 0 answers
  1. Błażej
    Błażej avatar
    11 posts
    Member since:
    Jun 2011

    Posted 09 Aug 2011 Link to this post

    Hi,

    I have radbutton and icon , like this:

    <telerik:RadButton ID="myRadButton" runat="server" Text="" 
            CssClass="RadBtn" onclick="some_function">
             <Icon SecondaryIconCssClass="rbAdd" SecondaryIconRight="4" SecondaryIconTop="4"/>
    </telerik:RadButton>

    when I click on my radbutton "some_function" is fire, but when I click on the icon which is on  this button my function doesn't work.
    Any ideas ?
    thanks .
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 09 Aug 2011 Link to this post

    Hello Blazej,

    I believe that was an issue with one of the older version of the controls and was fixed. Have you tried using the latest version of the controls and see if that resolves the problem.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Błażej
    Błażej avatar
    11 posts
    Member since:
    Jun 2011

    Posted 09 Aug 2011 Link to this post

    hi,

    I was tried and it didn't solve my problem . (i have the latest version of the controls)
  5. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 12 Aug 2011 Link to this post

    Hi Błażej,

    Could you please check if there is an HTML element overlapping the icon of the RadButton? If this is the case, you can solve it by making sure that the button has higher CSS z-index than the HTML element. I have attached a sample project, demonstrating the suggested solution. You may compare it with your actual project and check if your setup is similar. I have also added a screen capture, showing the behavior of the control in the particular scenario.

    Note that at the current state of affairs I am mostly guessing as to what your setup is. If you are still experiencing difficulties please open a regular support ticket and send in it a sample, runnable project that displays your issue so that we can examine it locally and provide a more to the point answer.

    Best wishes,
    Slav
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top