Radbutton in Radgrid css issue

3 posts, 0 answers
  1. Nick
    Nick avatar
    23 posts
    Member since:
    Jan 2012

    Posted 25 Mar 2015 Link to this post

    HI Telerik

    I have a radgrid and in EditFormSettings template of this grid I have a UserControl. This usercontrol contains a radbutton which has its own css defined in the control's ascx file. 

    But when I look into the generated html it shows a class Which is added to this radbutton and this is:

    .RadGrid_SkinName input
    {
       
    }

    This class is making the button look wierd. Is there a way to remove this class from the button's style.

    Thank a lot.
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 26 Mar 2015 in reply to Nick Link to this post

    Hello,

    We can't remove the given CSS class from the button style but we can  overwrite the existing style properties with "!important".

    Please check below code snippet for reference.

    <style type="text/css">
        .RadGrid_SkinName input {
            color: red !important;
        }
    </style>


    Let me know if any concern.

    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 27 Mar 2015 Link to this post

    Hi Nick,

    Could you please try to reproduce the issue with the attached example and then tell us what changes you have made, so that we can investigate it further?

    If you want to modify the appearance of the button I can suggest that you use the Lightweight render mode where RadButton renders as a button element and also no sprite images are used.


    Regards,
    Danail Vasilev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top