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

Tree to Grid Drag can't Resize Column

2 Answers 50 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 06 Jul 2011, 03:13 PM
Hi Telerik,

I have implemented something similar to the Tree to Grid Drag that you have posted as an example on the RadControls for WPF page in my own project.  I need to be able to resize the Column Widths on the RadGridView, but I can no longer do that once I begin to write my own Drag And Drop handlers for the RadGridView.  Your example does the same thing that mine does.  It doesn't allow you to change the Column Widths or re-order the columns in the middle portion labeled "Order".

Please let me know if you have found a solution to this problem.

Thanks,
Scott

2 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 08 Jul 2011, 01:15 PM
Hello Scott,

 You can suppress this behavior by adding the following code in drag handlers attached to  RadGridView:

if (e.Options.Source is GridViewHeaderCell)
{
    return;
}

That way the gridview can handle it cases and e.QueryResult will not get overridden by the handlers attached it.

Let us know if you have any further issues and questions.

Greetings,
Tsvyatko
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Scott
Top achievements
Rank 1
answered on 08 Jul 2011, 02:52 PM
Thanks for your help.  That worked perfectly.

Best regards,
Scott
Tags
DragAndDrop
Asked by
Scott
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Scott
Top achievements
Rank 1
Share this question
or