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

Unable to drag RadExpander by its header

1 Answer 69 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 07 Jul 2009, 05:14 PM
I have a RadExpander containing an ItemsControl with a group of objects I need to drag/drop.  I find that I am able to drag the expander only by its non-header parts.  Thus when it is collapsed I can never drag it.

I figured this is due to mouse capture by the expander's button.  Using techniques from another post, I disable the button and find that I can then drag it.  Unfortunately, I find I cannot do this 'on the fly' (i.e., when I first get the drag query) as the button has apparently already captured.

Do you have any suggestions on how I can achieve dragging the expander by its header?

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 08 Jul 2009, 07:53 AM
Hi Ken,

Thank you for your interest in the RadExpander control.

The reason of non-draggable header is the placement of the toggle button - within themes we had released this button occupied the whole header's surface - this way the expander will toggle regardless where you click, but the button interferes with the control's drag-ability.

In order to modify your expander-object to behave a draggable one, you should edit its template - shrink the button and leave enough space for dragging. Please note there is a solution with all five theme projects in our release - all style, templates, brushes, etc. are their Generic.Xaml files - just copy and modify what you need.

We hope this information will help you.

All the best,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Expander
Asked by
Ken
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or