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

[Solved] Unable to desing grid if EnableEmbeddedSkins="false"

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saran kumar
Top achievements
Rank 1
Saran kumar asked on 27 Nov 2009, 01:17 PM

hi i used a rad grid contains custom styles for each and every row.
in this im unable to
1)remove the underline though i give underline = false for those values has hyperlink.
2) the item is some what deviated from the header content.
3)the header content cant be aligned though i give align left/center.
4)how to chage the font of the text in the cloumns. i find no options to chage or give font names.

please help how to desing all these things when we user custom styles and skin off mode.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Nov 2009, 08:51 AM
Hello Saran,

Generally, it is good to provide your CSS code and/or RadGrid declaration when asking questions about styles, otherwise we may not be able to provide good-enough advice.

1) Underline="false" sets a text-decoration style to table rows or cells (depending on how you set it). However, hyperlinks do not inherit such styles by design. You should use a CSS rule to remove that underline, for example:

.RadGrid  .rgMasterTable  a
{
        text-decoration: none ;
}


2) This can happen if you have set inappropriate cell paddings or cell border widths:
http://www.telerik.com/support/kb/aspnet-ajax/grid/how-to-align-radgrid-cells-when-using-scrolling-and-gridlines.aspx


3) The header content is aligned according to a CSS style in the RadGrid skin. You have to override it:

div.RadGrid  .rgHeader
{
       text-align:  left ;
}


4) You can use the ItemStyle-Font-... , AlternatingItemStyle-Font-... and HeaderStyle-Font-...  properties of the MasterTableView. Every column has these properties as well, in case you want to set specific font styles for a given column.

http://www.telerik.com/help/aspnet-ajax/grdcustomizingrowappearance.html

As always, you can use CSS as well:

http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Saran kumar
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or