Jump to content


Photo

dbgrid color problem


  • Please log in to reply
38 replies to this topic

#1 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 07 June 2018 - 09:14 AM

1. When I use DrawColumnCell to change a row color for particular condition, the default color for selection won't show anymore for those rows when selecting. (It won't like that before using ver 6 js)

 

2. How to change all grid border color to black for all dbgrid without using theme ?

 

Thanks!


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 07 June 2018 - 09:21 AM

Hello,

 

Can you make a simple testcase for this, for a better view?!


  • 0

#3 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 07 June 2018 - 09:40 AM

1. See attachment

2. Yup , for better view

 

Attached Files


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 07 June 2018 - 10:15 AM

Ok

 

Maybe you wanted like this?:

 

CustomCSS:

.x-grid-item-over .x-grid-cell-inner  {
    color:#000;
    background-color: yellowgreen;
}

  • 0

#5 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 08 June 2018 - 01:10 AM

No. Actually I need all border lines with darker color instead of light-gray

How's the solution for #1 ? 

Thanks !


  • 0

#6 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 08 June 2018 - 01:40 AM

Also, I've mentioned before that there are spaces below each rows inside dbgrid

I've attached the test case

Thanks !

Attached Files


  • 0

#7 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 08 June 2018 - 06:55 AM

Hi,

 

Sorry, сan you make an "image" indicating the problem and how it should be?..


  • 0

#8 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 08 June 2018 - 08:15 AM

See Attachment 

Attached Files


  • 0

#9 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 08 June 2018 - 08:16 AM

For Question # 1,  When I select a row, it should show blue in background color , no matter it's in pink or in white originally (in extjs 4.X before) 


  • 0

#10 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 11 June 2018 - 01:11 AM

any idea?
  • 0

#11 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 11 June 2018 - 04:29 AM

Hi,

 

I'm sorry, I don't really understand your request


  • 0

#12 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 13 June 2018 - 06:14 AM

See Attachment 

How about the problem in #8 above ?


  • 0

#13 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 14 June 2018 - 01:31 AM

Any solution ?


  • 0

#14 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 14 June 2018 - 02:39 AM

Any solution ?


"a lot of space here"?
  • 0

#15 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 14 June 2018 - 06:12 AM

Did you try the sample test project  ?

When you scroll down to the bottom of the grid, there're a lot of empty space !


  • 0

#16 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 14 June 2018 - 06:49 AM

Attached File  grid_bottom.png   34.05KB   0 downloads


  • 0

#17 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 14 June 2018 - 06:52 AM

try next page and next page, or forward and backward several times, you may see the result that I show.


  • 0

#18 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 14 June 2018 - 06:53 AM

Your column width is not the same as mine. Just keep the original width


  • 0

#19 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5307 posts

Posted 14 June 2018 - 06:58 AM

Your column width is not the same as mine. Just keep the original width

 

 

Also, I've mentioned before that there are spaces below each rows inside dbgrid

I've attached the test case

Thanks !

 

I did not change anything


  • 0

#20 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 208 posts

Posted 14 June 2018 - 07:14 AM

I've found a very weird thing : 

Just unzip to a folder and open the project, (DONT'S OPEN the MAIN.PAS FILE) , compile and run !

You will see the difference. 

Once you open the main.pas file, it will be normal again ..........

Don't know why !


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users