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

GridLines not working in RADGRid

4 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bharat
Top achievements
Rank 1
Bharat asked on 16 Nov 2010, 10:36 AM

Hi All,


GridLines are not working in RadGrid. Autogenerated columns = true


my coding:

 

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

 

 

 

 

OnDetailTableDataBind="RadGrid1_DetailTableDataBind"

 

 

 

AutoGenerateHierarchy="true" GridLines="Both"

 

 

 

oncolumncreated="RadGrid1_ColumnCreated1" Skin="WebBlue" >

 

 

 

 

 

 

 

 

</telerik:RadGrid>

 




Bharat Rathore

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Nov 2010, 01:39 PM
Hello Bharat,

Please refer to this code library: http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-add-or-remove-radgrid-borders.aspx

Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Bruce
Top achievements
Rank 1
answered on 29 Jun 2016, 05:49 PM

the question (which I also need answer to) was about GridLines.

Unhelpful answer was about Borders.

0
Pavlina
Telerik team
answered on 01 Jul 2016, 10:53 AM
Hello,

The GridLines property is of no use when build in skins are used, because it renders the obsolete rules HTML attribute, which is easily overridden by any CSS styles that may define borders. Therefore I recommend you use the approach presented in the code library to achieve your goal.

Regards,
Pavlina
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Dennis
Top achievements
Rank 2
answered on 05 May 2017, 04:40 PM

Pavlina, I also found your answer to be unhelpful.

There is no reason why GridLines and Skins should not be able to work together. Telerik created these controls and the attributes that work with those controls and those attributes should work together and not against each other.

If your controls render obsolete HTML then it would be your responsibility to change the controls to render current HTML and/or CSS.

The code library suggestion you indicated requires the user to override the your own classes (such as .rgHeader and .rgRow) which could very well be accomplished by the GridLines="Both" attribute if your CSS styles respected that attribute setting!

Further, you indicate that users can easily override CSS styles that may define borders.  Because of how Telerik takes advantage of the CSS specificity rules, it is actually quite difficult for users to override Telerik's CSS specificity!

For my company, the GridLines="Both" not working is not a major concern, but it is an annoyance that it seems your controls should handle.

Tags
General Discussions
Asked by
Bharat
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Bruce
Top achievements
Rank 1
Dennis
Top achievements
Rank 2
Share this question
or