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

Tree view increasing the click - expand area

2 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
FlR
Top achievements
Rank 2
FlR asked on 15 Mar 2012, 06:32 PM
Please tell us if it's possible to increase the hot zone around a expand/collapse icon.

Currently the mouse pointer must be EXACTLY on top of the icon to expand/collapse a level. Increase the hot zone to include space around the the icon so it is easier to select.

Users complain that it is too hard to select the icon to expand or collapse.

I've attached an image which presents this.

Thank you.

2 Answers, 1 is accepted

Sort by
0
FlR
Top achievements
Rank 2
answered on 19 Mar 2012, 11:20 AM
Please let us know if there is any solution.
0
Hristo
Telerik team
answered on 20 Mar 2012, 10:14 AM
Hello,

I'm attaching a sample project demonstrating how you could easily change expander style. This is the most easy way for expander customization. The key part to increase the clickable area is to set transparent background of the Grid(s) inside the control template.

<Grid x:Name="CollapsedStates" Background="Transparent">
...
<Grid x:Name="ExpandedStates" Opacity="0" Background="Transparent">

Hope this helps.

All the best,
Hristo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
FlR
Top achievements
Rank 2
Answers by
FlR
Top achievements
Rank 2
Hristo
Telerik team
Share this question
or