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

GridViewToggleButton Style

3 Answers 161 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Roberto Pantalena
Top achievements
Rank 1
Roberto Pantalena asked on 13 Oct 2011, 05:37 PM

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

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Oct 2011, 02:36 PM
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 >>

0
Marina
Top achievements
Rank 1
answered on 27 Jan 2012, 11:30 AM
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)
0
Dimitrina
Telerik team
answered on 27 Jan 2012, 01:49 PM
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 >>

Tags
GridView
Asked by
Roberto Pantalena
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Marina
Top achievements
Rank 1
Share this question
or