This is a migrated thread and some comments may be shown as answers.

Changing background of TreeListView HeaderCell?

2 Answers 46 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 28 Apr 2020, 07:44 AM

Is it possible to change the background of the selected TreeListView HeaderCell? Customers complain that the solid background of the currently sorted column can be distracting.

We would prefer a white background with a thick underline as in the screenshot. We already tried changing the style of GridViewHeaderCell, but unfortunately, this doesn't apply to the sorted/selected column.

 

Is there a way to achieve this without duplicating the entire template?

 

Best Regards,

Martin

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 01 May 2020, 05:55 AM

Hello Martin,

Thank you for the provided image.

I am currently checking your scenario. I will contact you again shortly.

Regards,
Dinko
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Dinko | Tech Support Engineer
Telerik team
answered on 01 May 2020, 02:32 PM

Hi Martin,

Thank you for your patience.

Upon checking your scenario there isn't a straightforward approach to achieve this behavior. You will need to extract the default template of the GridViewHeaderCell and modify its template when the user sorted the column. You can take a look at Editing Control Templates help article which describes how you can get the default template of our controls.

Regards,
Dinko
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
TreeListView
Asked by
Martin
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or