DelphiFan Magazine

Top Menu

Main Menu

  • DELPHI
  • CODE SAMPLES
  • FIREMONKEY
  • DATABASE
  • RELEASES
  • VIDEOS
  • REVIEW
  • TECH NEWS

logo

DelphiFan Magazine

  • DELPHI
  • CODE SAMPLES
  • FIREMONKEY
  • DATABASE
  • RELEASES
  • VIDEOS
  • REVIEW
  • TECH NEWS
  • How to add a server application written in UNIGUI to startup?

  • UniGUI Expiry Link Anonymizer

  • UniGUI Add CAPTCHA to the WEB project

  • UniGui. Unique hybrid of Delphi and JS

  • How to transform a blob field into string lines (varchar) in SQL Firebird?

CODE SAMPLESDELPHI
Home›CODE SAMPLES›Customize the height of uniGUI Grid header

Customize the height of uniGUI Grid header

By admin
October 1, 2020
390
0
Share:

UniGUI’s Grid header does not provide delphi attributes to customize, because it supports multi-level headers and needs to be automatically calculated. However, if it is not customized, the height of the table head and the row height will not match. Through css, you can customize the height of the header, but for multi-level headers, it cannot be automatically calculated. This is a contradiction, how can we have the best of both worlds?

There is a way. We first define a CSS with a fixed height header and put it in uniServerModule.CustomCSS:

 

.kls-grid .x-column-header
{
background-color: #F7F7F7;
background-image:initial;
/* border-width: 0px !important; */
border-right: 0px solid #e0e0e0;
height:30px;
}

.kls-grid .x-grid-header-ct{
background-color: #F7F7F7;
background-image:initial;
border:initial;
border-bottom-width: 1px !important;
border-bottom-color: #E4E4E4 !important;
border-bottom: 1px solid #E4E4E4 !important;
height:30px;
}

Note that this name is opened: kls-grid

For the non-multi-level header Grid, we set his attributes:

uniDBGrid.LayoutConfig.ComponentCls:=’kls-grid’

For the multi-level header Grid, we do not set uniDBGrid.LayoutConfig.ComponentCls

Tagsdelphigrid headeruniguiunigui cssunigui gridunigui header
Previous Article

Tending to the Problem of the Missing ...

Next Article

Android Permissions in Delphi

0
Shares
  • 0
  • +
  • 0
  • 0
  • 0
  • 0

admin

Related articles More from author

  • CODE SAMPLESDELPHI

    Two ways to improve the efficiency of unigui development

    October 13, 2020
    By admin
  • CODE SAMPLESDELPHI

    How to upgrade jquery uniGUI

    October 1, 2020
    By admin
  • DELPHIFIREMONKEY

    Opening a Pdf File With Delphi (Android)

    October 6, 2020
    By admin
  • CODE SAMPLESDELPHI

    Customize the appearance of uniGUI TreeMenu

    October 1, 2020
    By admin
  • CODE SAMPLESDELPHI

    Internationalizing your application in Delphi

    January 7, 2021
    By admin
  • CODE SAMPLESDELPHI

    How does Delphi handle different types of files

    November 19, 2020
    By admin

Leave a reply Cancel reply

You may interested

  • CODE SAMPLESDELPHIFIREMONKEY

    Delphi Firemonkey calls functions asynchronously in the main thread (delayed calls)

  • CODE SAMPLESDELPHI

    Delphi and Bluetooth

  • CODE SAMPLESDELPHI

    How does Delphi install and configure third-party controls and deal with file not found

  • LATEST REVIEWS

  • TOP REVIEWS

Timeline

  • January 27, 2021

    How to add a server application written in UNIGUI to startup?

  • January 27, 2021

    UniGUI Expiry Link Anonymizer

  • January 26, 2021

    UniGUI Add CAPTCHA to the WEB project

  • January 26, 2021

    UniGui. Unique hybrid of Delphi and JS

  • January 13, 2021

    How to transform a blob field into string lines (varchar) in SQL Firebird?

Latest Comments

Find us on Facebook

Follow Us on Instagram

logo

Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.

About us

  • 660 Pennsylvania Avenue Southeast #100 Washington, DC 20003
  • 0123456789
  • adsdelphi@gmail.com
  • Recent

  • Popular

  • Comments

  • How to add a server application written in UNIGUI to startup?

    By admin
    January 27, 2021
  • UniGUI Expiry Link Anonymizer

    By admin
    January 27, 2021
  • UniGUI Add CAPTCHA to the WEB project

    By admin
    January 26, 2021
  • UniGui. Unique hybrid of Delphi and JS

    By admin
    January 26, 2021
  • How to add a server application written in UNIGUI to startup?

    By admin
    January 27, 2021
  • Amazing Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

    By admin
    August 13, 2020
  • Critical Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

    By admin
    September 4, 2020
  • Setting up the IDE for your first Android Application in Delphi

    By admin
    September 7, 2020

Follow us

Find us on Facebook

© Copyright Delphifan Forum. All rights reserved.