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

Radbutton in Radgrid css issue

2 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 26 Mar 2015, 12:15 AM
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 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 26 Mar 2015, 07:16 PM
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
0
Danail Vasilev
Telerik team
answered on 27 Mar 2015, 12:35 PM
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.

 
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Danail Vasilev
Telerik team
Share this question
or