Jump to content

TUniDBTreeGrid selected row color, mouseover rowcolor, Themes


gerhardhziegler

Recommended Posts

Good afternoon,

some of the themes, like W10, do not mark the selected row neither the mouseover with a color (neptune or default do so).

Anyway I tried to change this by some css, like explained (here at the forum) for all other grid types, but it did not work with the UniDBTreeGrid. For me it seems, there is some other CSS I could need, but I could really need some advice now.

Best regards from Berlin,

 

 

Gerhard

Link to comment
Share on other sites

Hi,

 

Can you try to use this approach for now ?!:

 

1. CustomCSS:

.mygrid .x-tree-view .x-grid-row .x-grid-cell-selected {
    background-color: #b8cfee !important;
}

.mygrid .x-tree-view .x-grid-row-selected .x-grid-td, .mygrid .x-tree-view .x-grid-row-over .x-grid-td, .mygrid .x-tree-view .x-grid-row-focused .x-grid-td {
    background-color: #d8daeb !important;    
}

.mygrid .x-grid-with-row-lines .x-grid-td {
    border-width: 1px !important;
    border-left-width: 0px !important;
    border-top-width: 0px !important;
    border-color: #ededed #d0d0d0 #ededed #d0d0d0 !important;
    border-style: solid !important;
}

.mygrid .x-tree-view .x-tree-node-text {
    border: none !important;
}

2.

function beforeInit(sender, config)
{
    config.cls='mygrid';
}

Best regards,

Link to comment
Share on other sites

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