Drag and drop: styling the dragged item

2 posts, 0 answers
  1. Peter
    Peter avatar
    13 posts
    Member since:
    Jul 2012

    Posted 21 Jan 2015 Link to this post

    How do I style the dragged item when using drag-and-drop with a RadTreeList? I am currently doing this by setting the OnItemDragging client event to call a Javascript function, then having that function call args.get_draggedContainer(), then setting the classname for the result, but it seems like there should be a simpler way. Is there a property I can set that will control the CSS class of a dragged item?
  2. Eyup
    Eyup avatar
    3618 posts

    Posted 26 Jan 2015 Link to this post

    Hello Peter,

    You can use the following styling:
    <style type="text/css">
        .TreeListDraggedRows_Default tr.rtlRSel {
            color: lime;

    Or modify the entire dragged element using javascript per your initial suggestion, similar to this RadGrid sample:

    Hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top