CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Remove Grid Lines

by MikeC » 22 Feb 2018 23:06

I know this has been asked - and answered - before. I need to remove all the internal lines from a grid - i.e. the individual cell boundaries. Unfortunately, I can't quite understand the answer (to use custom CSS) as I a) don't know which class to override and b) don't know where to put any code, exactly. I've looked at the two examples until I'm cross-eyed, but could really, really do with another (easier for me to understand!)example :-).
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by Alexander Bulei » 23 Feb 2018 15:38

Hi MikeC,

Which grid lines? rows? for what?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MikeC » 23 Feb 2018 17:34

The cell boundaries. Each cell has an icon and it would look a lot nicer without being inside a "box". So - eliminate the row lines and the column lines.
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by Alexander Bulei » 23 Feb 2018 19:07

Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MikeC » 23 Feb 2018 19:37

Yes, that's one of the posts I was referring to. I wonder if it would be possible for a more specific example - or just indicate what class the grid actually is so as to override it, as wading through the existing CSS is rather a gargantuan task.....
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by Alexander Bulei » 27 Feb 2018 11:33

Hi MikeC,

Add the css class to grid (css property):

Code: Select all
IWCGJQGrid1.Css:= 'my-grid';


Then, you need create your own custom style file (use the topics refs).

Add this css code:

css code
.my-grid .ui-jqgrid tr.ui-row-ltr td{
border-width: 0;
}


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MikeC » 28 Feb 2018 11:24

Fantastic! I can hardly believe it worked :-). Thanks so much. I'm now left with the external border around the whole grid..... that appears to need something else in the CSS to get rid of it. Would you have any suggestions for that, so I can finally put this bit to rest?
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by Alexander Bulei » 01 Mar 2018 10:15

Hi MikeC,

Here you have:

css code
.my-grid-css .ui-jqgrid{
border: 0;
}



Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MikeC » 01 Mar 2018 23:37

That's it! Brilliant. Thank you so much. I really need to find a book on the CSS used in JQuery........
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by bob9999 » 22 Feb 2019 19:33

Hi there. The vertical lines are also still in the columns headers. Is there a way to also get rid of those too? Thanks for this code! Works like a charm and now I see how to customize the grid look. Cheers!
bob9999
 
Posts: 110
Joined: 18 Jan 2019 17:32

Next

Return to JQGrid

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.