Unable to drag RadExpander by its header

2 posts, 0 answers
  1. Ken
    Ken avatar
    8 posts
    Member since:
    Jun 2009

    Posted 07 Jul 2009 Link to this post

    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?
  2. Ivan
    Ivan avatar
    519 posts

    Posted 08 Jul 2009 Link to this post

    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,
    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.
Back to Top