Setting Payload Type

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    2 posts
    Member since:
    May 2009

    Posted 06 May 2009 Link to this post

    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.

  2. Miroslav Paskov
    Miroslav Paskov avatar
    6 posts
    Member since:
    Oct 2007

    Posted 11 May 2009 Link to this post

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top