Tree to Grid Drag can't Resize Column

3 posts, 0 answers
  1. Scott
    Scott avatar
    7 posts
    Member since:
    May 2011

    Posted 06 Jul 2011 Link to this post

    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. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 08 Jul 2011 Link to this post

    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!

  3. UI for WPF is Visual Studio 2017 Ready
  4. Scott
    Scott avatar
    7 posts
    Member since:
    May 2011

    Posted 08 Jul 2011 Link to this post

    Thanks for your help.  That worked perfectly.

    Best regards,
    Scott
Back to Top