This is a migrated thread and some comments may be shown as answers.
Just one cell/field in dragged item
4 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 25 Jul 2013, 01:25 PM
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?

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Jul 2013, 02:39 PM
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 >>
0
Rieni De Rijke
Top achievements
Rank 1
answered on 26 Jul 2013, 12:48 PM
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?

0
Dimitrina
Telerik team
answered on 30 Jul 2013, 02:19 PM
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 >>
0
Rieni De Rijke
Top achievements
Rank 1
answered on 19 Aug 2013, 08:30 AM
Yes! This works fine. Thank you.

Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Share this question
or