CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Grid CSS

by MikeC » 14 Mar 2019 11:35

I have two grids on a form. The CSS property of one of the grids points to a custom CSS which is loaded in the form's Content Files. This works fine and the grid displays as required. The other grid has NOTHING in the CSS property and I want it to display as standard for the theme. However, it is picking up the custom CSS still! Why? How can I stop it doing that?
MikeC
 
Posts: 35
Joined: 26 Sep 2015 09:24

by Alexander Bulei » 15 Mar 2019 13:51

Hi MikeC,

Because you have global css rules for all grids in page.
If you want apply to only one grid, you need define the unique css class for that grid, and use in css.

E.g:

delphi code
Grid.Css:= 'my-grid-css';


Then, in css limit the rule like:

css code
.my-grid-css .another{}


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


Return to JQGrid

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.