Jump to content


Photo

Selected record


  • Please log in to reply
14 replies to this topic

#1 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 471 posts
  • LocationCuiabá-Brasil

Posted 13 June 2018 - 04:20 PM

How can we maintain the color of the selected record when we perform the conditional color change of a particular record using the customdrawcell event

 

In the example image, all records have met the condition that changed the color of the records, but it is not possible to identify which one is selected.

Attached Files


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5314 posts

Posted 13 June 2018 - 06:28 PM

Hi,

 

Have you tried to search answers on the forum?

What options are set on the grid?


  • 0

#3 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 471 posts
  • LocationCuiabá-Brasil

Posted 13 June 2018 - 08:24 PM

Hi,

 

Have you tried to search answers on the forum?

What options are set on the grid?

Certainly. I usually do this. Maybe I could not find it the way I did, but I usually do it.

 

But I did another search again, under other conditions, and found something related to 6 js, as well as a solution.
But thank you, and forgive the hassle
It is our pleasure to search the sim forum
 

  • 0

#4 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 14 June 2018 - 07:25 AM

That's what the problem that I stated . But no solution yet 


  • 0

#5 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 471 posts
  • LocationCuiabá-Brasil

Posted 14 June 2018 - 12:41 PM

That's what the problem that I stated . But no solution yet 

I have not found a solution in the forum, other things but nothing for this


  • 0

#6 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 15 June 2018 - 01:05 AM

Yup, hope that they'll find one soon .


  • 0

#7 zhyhero

zhyhero

    Member

  • uniGUI Subscriber
  • PipPip
  • 28 posts

Posted 15 June 2018 - 02:07 AM

Maybe you can try conditional font color


  • 0

#8 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 15 June 2018 - 03:13 AM

I've tried condition arow = dbgrid.currrow, but not work 


  • 0

#9 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 19 June 2018 - 02:40 AM

Any solution >?


  • 0

#10 kkelchev

kkelchev

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 99 posts

Posted 20 June 2018 - 07:47 AM

Any solution about this ?
  • 0

#11 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 471 posts
  • LocationCuiabá-Brasil

Posted 20 June 2018 - 11:13 AM

+ 1


  • 0

#12 zhyhero

zhyhero

    Member

  • uniGUI Subscriber
  • PipPip
  • 28 posts

Posted 21 June 2018 - 02:47 PM

Look like this ?

 

Attached File  selected1.png   12.29KB   5 downloads

 

Attached File  selected2.png   15.93KB   2 downloads

 

 

Attached File  unidbgridrecordselect.rar   54.12KB   8 downloads


  • 0

#13 wilton_rad

wilton_rad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 149 posts

Posted 21 June 2018 - 05:48 PM

por que voce não muda a cor de algumas colunas em vez de todas, assim se todos os registros ficar com cor igual, nao vai atrapalhar a selecao do registro atual.

 

How can we maintain the color of the selected record when we perform the conditional color change of a particular record using the customdrawcell event

 

In the example image, all records have met the condition that changed the color of the records, but it is not possible to identify which one is selected.


  • 0

#14 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 22 June 2018 - 01:11 AM

Yes, it did so. But need to refresh everytime it clicks. Also need to work out in every modules instead .


  • 0

#15 allenchow

allenchow

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 217 posts

Posted 22 June 2018 - 01:11 AM

por que voce não muda a cor de algumas colunas em vez de todas, assim se todos os registros ficar com cor igual, nao vai atrapalhar a selecao do registro atual.

But it works in extjs 4.x 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users