Just one cell/field in dragged item

5 posts, 0 answers
  1. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 25 Jul 2013 Link to this post

    When dragging a row from a RadGridView, by default. the whole row with all the cells/fields is shown as Dragged Item.m
    Is there a simple way to just show one of the cells/fields?
    Without the need of several help-classes and templates?

    What is the easiest way?

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Jul 2013 Link to this post

    Hi,

    You will need to define a drag ItemTemplate as you would like to. You can check our WPF Demos on DragDropManager and also the "Reorder Rows" demo on RadGridView.

    Let me know if you have any further questions.

     

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2013 Link to this post

    Right...
    The question was:
    Is there a simple way to just show one of the cells/fields?
    Without the need of several help-classes and templates?

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Jul 2013 Link to this post

    Hi,

    You can also directly set the e.DragVusual to be the value of a property of the sourceRow.Item.
    For example:

    var user = sourceRow.Item as User;
    if (user != null)
    {
       e.DragVisual = user.UserName;
    }

    I hope this helps.
     

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  5. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 19 Aug 2013 Link to this post

    Yes! This works fine. Thank you.

Back to Top