CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Different Panel widths

by Omega8 » 14 Jan 2018 23:11

I have a horizontal MGridPanel with 3 Panels in it. Is it possible to set different % values for the width of the panels with css. Could you please give an example of the css which would do this. Currently its showing 33%,33%,33%. I would like to make it 20% 60% 20%.

Thanks
Omega8
 
Posts: 87
Joined: 18 Mar 2016 22:42

by Alexander Bulei » 15 Jan 2018 11:40

Hi Omega8,

I have a horizontal MGridPanel with 3 Panels in it. Is it possible to set different % values for the width of the panels with css. Could you please give an example of the css which would do this. Currently its showing 33%,33%,33%. I would like to make it 20% 60% 20%.


You can define custom css class for each panel, and override the default css rules, in your custom css file.

delphi code
IWCGJQMPanel1.Css:= 'grid-col-20';
IWCGJQMPanel2.Css:= 'grid-col-60';
IWCGJQMPanel3.Css:= 'grid-col-20';


In your custom style:

css code
.grid-col-20{
width: 20% !important;
}

.grid-col-60{
width: 60% !important;
}


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 JQMGridPanel

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.