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

Styling/Skinning the Grid

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugo Furth
Top achievements
Rank 1
Hugo Furth asked on 22 Jul 2010, 10:10 PM
Hoping someone can help me understand styling/skinning a little bit.

I have a radgrid that I don't want visible when my page loads. (In JS, I make it visible later.)

I have a radgrid defined as in example 1. using css as shown. RadGrid doesn't seem to pick it up (except in design mode). But then if I define my grid as in example 2 (using style=.....), my grid is initially hidden as desired. Can someone help me understand how the grid decides on style?

Thanks,
Hugo

// example 1 - style specified via css file
 
      <telerik:RadGrid ID="BAGrid"  runat="server" DataSourceID="ProdData" GridLines="None" AllowSorting="True" OnPreRender="BAGrid_PreRender">
 
 
// example 1 css 
 
#BAGrid {
    visibility:hidden;
    background-color:Purple; <--shows up in design mode but not at load time!
    }
 
// example 2  - style specified inline
 
 <telerik:RadGrid ID="BAGrid" style="visibility:hidden" runat="server" DataSourceID="ProdData" GridLines="None" AllowSorting="True" OnPreRender="BAGrid_PreRender">

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 28 Jul 2010, 07:21 AM
Hello Hugo Furth,

I would suggest that you review the following blog post:

How To Override Styles in a RadControl for ASP.NET AJAX' Embedded Skin

I hope this helps

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Hugo Furth
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or