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

Posibility to add Class attribute to TreeListColumn

1 Answer 241 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Ciprian Daniel asked on 25 Sep 2020, 05:34 AM

Hello,

Is there any possibility to set a css class directly to the TreeListColumn element of TelerikTreeList > TreeListColumns? As I want to set for example the background-color of a cell depending on some conditions from the model that I'm passing to the TreeList.

Now the only thing that can be done is to set the Template and in there add a div element where I can set the css class or inline style css rules, but that's not very convenient for me as the column that has the expandable arrow will not look good, that's why it will be more convenient if I could have a posibility to set a css class directly to the td (cell) element.

Best regards,

Cipri

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Sep 2020, 08:59 AM

Hi Cipri,

We are working on this, and I expect it will be exposed for the treelist in the same way it is done for the grid: https://feedback.telerik.com/blazor/1456957-conditional-row-and-cell-class-for-styling

 

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TreeList
Asked by
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or