Jump to content

Recommended Posts

Posted

Hi,

is there any way to change the items color of a treeview to the same color of the treeview itself?

I change the color of the treeview at runtim as follows

- new definition in a css-file:

     tvcolor .x-tree-view {color: #F0F0F0; background-color: #F0F0F0;}

- set the property of the treeview:

     My_LayoutConfig(UniTreeView1.LayoutConfig).Cls := 'tvcolor';

image.png.f9b4845fc79ab05b6e38294a19dc06a2.png

 

It works fine, but I have now idea how to change the color of each item.

Best regards

Posted

Hi,

thank you very much for your support. Now I found the needed part:

  CustomCSS.Add('.tvcolor .x-grid-row {background-color: #FF0000;}');
  CustomCSS.Add('.tvcolor .x-tree-view {background-color: #FF0000;}');
 

Best regards

 

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...