Jump to content


Photo

[Touch-DBGrid] How to change header & row height from Custom CSS


  • Please log in to reply
4 replies to this topic

#1 MichaelT

MichaelT

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 16 November 2016 - 10:01 AM

Hi all,
 
I can't modify these properties with CustomCSS. I tried with several examples but it doesn't work !
Only solution for the moment is implement an client event but I don't know the property to set for the Header/Column height:
 
function beforeInit(sender, config)
{
  config.itemHeight = 35; 
}
 
PS: A CSS code is much appreciate to avoid to define this event for each dbgrid on my app :)
 
Thank you for your help.

 


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 17 November 2016 - 01:39 AM

Hi,

 

Try this:

http://forums.unigui...ont/#entry33626

 

Best regards.


  • 0

#3 MichaelT

MichaelT

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 17 November 2016 - 09:11 AM

Hello,

 

Thank you for your answer. The CSS code works fine only for the column height.

It remains a problème with this HTML tag :

 

<div class="x-container x-grid-header-container x-dock-item x-docked-top x-sized" id="ext-headercontainer-1" style="height: 65px !important;">

 

I tried to add this css code but it doesn't work  :wacko: .

 

.x-container .x-grid-header-container .x-dock-item . x-docked-top .x-sized{
    height: 30px !important;
}
 
Do you have any idea to modify the height for these classes (.x-container .x-grid-header-container)?
 
Best regards,

  • 0

#4 msegura

msegura

    Member

  • uniGUI Subscriber
  • PipPip
  • 29 posts

Posted 17 September 2017 - 10:08 AM

Hello,

 

  I have the same problem. Any idea?

 

  Thank you.


  • 0

#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4119 posts

Posted 17 September 2017 - 12:14 PM

Hi,

Which edition are you using and can you make a simple testcase if possible?

Best regards,
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users