Jump to content

UnimDBGrid - FontSize and RowHeight


Bocchi

Recommended Posts

Hi,

 

RowHeight (default 60):

 

1. UnimDBGrid1 -> ClientEvents -> UniEvents -> add beforeInit fn:

function beforeInit(sender, config)
{   
  config.itemHeight = 30;
}

2. And UniServerModule.CustomCSS:

.x-grid .x-grid-cell {    
   height: 30px;
   line-height: 30px;    
}

with FontSize:

 

1. UniServerModule.CustomCSS:

.x-grid .x-grid-cell {
   height: 30px;
   line-height: 30px;
   font-size: 12px;
}

Try...

Best regards.

Link to comment
Share on other sites

Hi,

 

I think in the next versions it will be possible to change in the properties,
while you can try this..

 

One of the possible solutions with CSS:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UniSession.SetStyle(
  '#'+UnimDBGrid1.JSName+'_id div[id*="gridrow"] > div {' +
  '  height: 30px;' +
  '  line-height: 30px;' +
  '  font-size: 12px;' +
  '}');
end;

Best regards.

Link to comment
Share on other sites

×
×
  • Create New...