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

Style parent rows on excel export

1 Answer 52 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Iron
Paul asked on 22 Mar 2016, 08:32 PM
I am using a linkbutton to use teleriks excel export to export the entire tree of the rad tree list. Is there a way to style the parent rows only? I see an expand collapse cell style setting, but that just styles the cell with the expand/collapse icon. However, I need to style that entire row. Is there a way to do that?

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 25 Mar 2016, 08:41 AM
Hello Paul,

A possible solution is access the TreeListDataItem on ItemDataBound event handler and set BackColor to the rows which you want to colorize. For your convenience, I prepared a small sample and attached it to this thread.

Regards,
Kostadin
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TreeList
Asked by
Paul
Top achievements
Rank 1
Iron
Answers by
Kostadin
Telerik team
Share this question
or