GridViewToggleRowDetailsColumn Style

2 posts, 1 answers
  1. Ivan
    Ivan avatar
    9 posts
    Member since:
    Dec 2010

    Posted 09 Sep 2011 Link to this post

    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.
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 15 Sep 2011 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top