GridViewToggleButton Style

4 posts, 0 answers
  1. Roberto Pantalena
    Roberto Pantalena avatar
    19 posts
    Member since:
    Jul 2009

    Posted 13 Oct 2011 Link to this post

    I did a customized style for GridViewToggleButton, if I expand the subgrid and I collapse it back, the rows (main grid) that go offscreen loose the style.
    Is it a known issue, can you help?

    Thank you very much.
     V/R,
     Roberto

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Oct 2011 Link to this post

    Hello Roberto Pantalena,

     I was not able to reproduce the problem that you have described. How do you customize the style for the GridViewToggleButton?

    The way I do it is the following:
    I have created a style for the HierarchyExpandButton. In this style I set the PresentationMode property of GridViewToggleButton to PlusMinus

    <Style x:Key="PlusMinusButtonStyle" TargetType="telerik:GridViewToggleButton">
        <SetterProperty="PresentationMode"Value="PlusMinus"/>
    </Style>

    Then I apply the style:
    HierarchyExpandButtonStyle
    ="{StaticResource PlusMinusButtonStyle}"

    I do not loose it when the rows go offscreen.

    How is your approach different from mine?
    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Marina
    Marina avatar
    5 posts
    Member since:
    Feb 2011

    Posted 27 Jan 2012 Link to this post

    Hello. Could you tell me, have GridViewToggleButton (in TreeListView) property that determinate indent from left border of cell to plus button? Or how can i do this? (i show on attached picture what i mean)
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Jan 2012 Link to this post

    Hello,

    Unfortunately for the time being this indent could not be changed. 

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top