Jump to content

Recommended Posts

Posted

I found a solution in these forums to setting the height of rows in a grid, but that seems to set the CustomCSS globally. How would I approach this problem if I have two grids, both requiring different row heights ?


 

 

Hi,

 

Try...

 

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

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

2. UniServerModule -> CustomCSS ... add

.x-grid .x-grid-column {
    border-style: solid;
    border-width: 1px 1px 0;
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    vertical-align: middle;
    font-family: 'Times New Roman', Times, serif;
    font-size:  11pt;
    font-weight: bold;
}

.x-grid .x-grid-cell {
    height: 30px !important;
    line-height: 30px !important;
    font-family: 'Times New Roman', Times, serif;
    font-size:  11pt;
}

Best regards.

  • rep_up.png
  •  
  • 0

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...