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

GridViewToggleRowDetailsColumn Style

1 Answer 102 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 09 Sep 2011, 05:36 PM
Hi.

I am using the TreeListView for showing some hierarchical information, but I also want to show some details about the last children. So I added a RowDetailsTemplate and a GridViewToggleRowDetailsColumn(in the columns specification).

The thing is that, by doing so, the first column, which is the ToggleRowDetails, displays two expanders (the grouping expander and the detailstogglebutton), so then I added a visibility parameter of the togglebutton binded to the collection, and a converter, which validates if the binded data is null (in which case, the togglebutton is hidden). But as result, the togglebutton is displayed with another style, not the one that is specified by the theme (as a '+' button, not the arrow of the OfficeTheme).

I know it's not an important issue, cause the control already works as I wanted, but I'd like that the expanders looked the same.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 15 Sep 2011, 08:13 AM
Hi Ivan,

I presume that you are trying to achieve this by setting the ToggleButtonStyle property of the column. However, in this way you are overwriting the former style of the button, which sets its PresentationMode to "Arrow". In order to make it work, you should add this setter in your new style:
<Setter Property="PresentationMode" Value="Arrow" />


Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
TreeListView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or