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

How can I hide the HierarchyExpandButton

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Build-dude
Top achievements
Rank 1
Build-dude asked on 25 Oct 2010, 05:48 PM
what is the best method of hiding the HierarchyExpandButton and the column that it adds to the GridView

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 28 Oct 2010, 08:50 AM
Hello Aaron,

The HierarchyExpandButton is part of the GridViewRow and in order to change it you should edit the GridViewRow's template and set its Visibility property to Collapsed. If you want to keep the synchronization between the GridViewRow and GridViewHeaderRow you should also edit the template of GridViewHeaderRow. Find the part HierarchyIndentPresenter and set its Visibility property to Collapsed too. Attached is a sample project that demonstrates this approach.

If you need any additional information please let me know.

Greetings,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Build-dude
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or