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

Setting Payload Type

1 Answer 57 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 07 May 2009, 12:48 AM
Hi - I was looking at the ListBox example, and I'm wondering how you would suggest handling different types of payloads in a drag/drop subclass (like DraggableListBox).  In the example, the payload type is ApplicationInfo.  I want to be able to handle various business objects as payloads.

Cheers,
Jeff

1 Answer, 1 is accepted

Sort by
0
Miroslav Paskov
Top achievements
Rank 1
answered on 11 May 2009, 01:18 PM
Hi Jeff,

Generally it is not a problem to set any object as the payload of a DragDrop.

The issue with the ListBox is that it does not support ItemTemplateSelectors. Currently with an ItemTemplate you could only have one type of bound object or if there are several, they need to share the same template.

You can use the ItemTemplateSelector in all Telerik ItemsControls.

Regards,
Miroslav
Tags
DragAndDrop
Asked by
Jeff
Top achievements
Rank 1
Answers by
Miroslav Paskov
Top achievements
Rank 1
Share this question
or