This question is locked. New answers and comments are not allowed.
Hello,
Just and stupid question from a noob... how can I to show horizontal grid lines in the grid control?
I'm coloring my rows and I found difficult to read rows when the same color is applied to adjacent rows.
Columns grid lines appear always but is not the case with row lines.
Regards
Jose
Just and stupid question from a noob... how can I to show horizontal grid lines in the grid control?
I'm coloring my rows and I found difficult to read rows when the same color is applied to adjacent rows.
Columns grid lines appear always but is not the case with row lines.
Regards
Jose
7 Answers, 1 is accepted
0
Accepted
Hi Jose,
Hope this helps,
Alex Gyoshev
the Telerik team
.t-grid td {
border-bottom: 1px solid #abcdef;
}Hope this helps,
Alex Gyoshev
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
0
Jose
Top achievements
Rank 2
answered on 25 Oct 2010, 03:06 PM
Hi Alex,
Thank you very much for your help.
I've added this line:
.HtmlAttributes(new { style = ".t-grid td { border-bottom: 1px solid #abcdef; }" })
to my grid but no horizontal line appear.
Any idea?
Regards
Jose
Thank you very much for your help.
I've added this line:
.HtmlAttributes(new { style = ".t-grid td { border-bottom: 1px solid #abcdef; }" })
to my grid but no horizontal line appear.
Any idea?
Regards
Jose
0
Accepted
Hello Jose,
</style>
or to your web site CSS. Regards,
Atanas Korchev
the Telerik team
You cannot apply CSS styles like that. That code must be added either in a style tag:
<style type="text/css">
.t-grid td {
border-bottom: 1px solid #abcdef;
}</style>
or to your web site CSS. Regards,
Atanas Korchev
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
0
Jose
Top achievements
Rank 2
answered on 25 Oct 2010, 06:06 PM
Hi Attanas,
Thank you very much.
With these inline code works fine.
Regards
Jose
Thank you very much.
With these inline code works fine.
Regards
Jose
0
Henry
Top achievements
Rank 1
answered on 09 Jun 2011, 06:41 AM
This approach is not working now on 2011Q1,517
0
Demon
Top achievements
Rank 1
answered on 09 Jun 2011, 08:01 AM
The CSS rule is working in my project. Have you checked what Firebug says? Make sure your CSS rule comes after the Grid skin.
On the other hand, it is better to use this, otherwise the last column may appear with no bottom border:
.t-grid td ,
.t-grid td.t-last
{
border-bottom: 1px solid red;
}
On the other hand, it is better to use this, otherwise the last column may appear with no bottom border:
.t-grid td ,
.t-grid td.t-last
{
border-bottom: 1px solid red;
}
0
Henry
Top achievements
Rank 1
answered on 09 Jun 2011, 12:23 PM
Make sure your CSS rule comes after the Grid skin.
Bingo! Many Thanks!
Bingo! Many Thanks!