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

radgrid cannot remove default CSS style

1 Answer 236 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexei
Top achievements
Rank 1
Alexei asked on 22 Oct 2008, 01:43 PM
Hello,

I followed instructions on http://www.telerik.com/help/aspnet/grid/grdskins.html in order to remove the skin completely and use my custom properties and CSS.

I put Skin="None" however, when the grid is rendered I get the following:

<DIV class="RadGrid RadGrid_None" id=ctl00_PageContent_UcDrpProjects1_RadGrid1 tabIndex=0><!-- 2008.2.826.20 -->
<TABLE class=MasterTable_None

where is this coming from? And if I put my own Css="myCss" it will put "MasterTable_None myCss"

By the way, all properties work except cellpadding. The padding is properly displayed in designer, but when ran, it's not reflected on the table dispite the cellPadding=5 being there after html rendering.

The following is my radgrid definition:



  <telerik:RadGrid
                ID="RadGrid1"
                runat="server"
                AutoGenerateColumns="False"
                DataSourceID="ads_Projects"
                GridLines="None"
                AllowSorting="True"
                PageSize="5"  
                ImagesPath="../Images/"
                CellPadding="5"
                EnableEmbeddedBaseStylesheet="False"
                EnableEmbeddedSkins="False"
                Skin="None"
                AllowPaging="True"
                
                >
                    <MasterTableView
                    DataKeyNames="OrderID"
                    DataSourceID="ads_Projects"
                    BackColor="#75A19B"
                    CellPadding="5"  
                    CellSpacing="1"
                    Font-Bold="False"
                    Font-Italic="False"
                    Font-Overline="False"
                    Font-Size="Small"
                    Font-Strikeout="False"
                    Font-Underline="False"
                    GridLines="None"
                  >



Thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Oct 2008, 01:51 PM
Hello Alexei,

Unfortunately, you are not reading the appropriate help article.

http://www.telerik.com/help/aspnet/grid/grdskins.html - this is for RadGrid for ASP.NET

http://www.telerik.com/help/aspnet-ajax/grdskins.html - this is for RadGrid for ASP.NET AJAX, which you are using

In your case, you should have

<telerik:RadGrid Skin="" />


Greetings,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Alexei
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or