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

CSS not getting Applied for RadGrid

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Harin Yadav
Top achievements
Rank 2
Harin Yadav asked on 30 Oct 2012, 07:16 PM
HI

im Using  ItemStyle-CssClass="rwStyle_Brkmgnt"  to apply border for the for grid cells
but this border is getting show only to the First Row of grid

my code ASPX:
<telerik:GridNumericColumn ItemStyle-CssClass="rwStyle_Brkmgnt"  ItemStyle-Wrap="false" UniqueName="NoOfOffices" DataField="NoOfOffices" >
                      </telerik:GridNumericColumn>
CSS:

.rwStyle_Brkmgnt
{
    border-right: solid 1px #c1c1c1;    
    border-bottom: solid 1px #c1c1c1;         
}

Please see the attachment   Screen shot how the CSS is getting Applied

how to Apply border to Whole Grid

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Oct 2012, 06:14 AM
Hi,

I guess you want to give border to all cells in the RadGrid and border for entire RadGrid.

ASPX:
<telerik:RadGrid ID="RadGrid1" CssClass="RadGridCustomClass" . . .>

CSS:
<style type="text/css">
 div.RadGridCustomClass  .rgRow  td, 
        div.RadGridCustomClass  .rgAltRow  td
        {
             border-right :1px solid #c1c1c1 !important
             border-bottom:1px solid #c1c1c1 !important
        }
        .RadGrid_Default
        {
            border: 1px solid Red !important;
        }
</style>

Thanks,
Shinu.
Tags
Grid
Asked by
Harin Yadav
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or