Change row by image while is droping

5 posts, 1 answers
  1. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 13 Jun 2012 Link to this post

    I need change row image while is droping



    by other icon or image, for example:




    How I can do this??

    regards
  2. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 13 Jun 2012 Link to this post

    .can not see your example image
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 14 Jun 2012 Link to this post

    I use chorme I see it..

    I Attach the image right now!


    I need change row image while is droping   -
    -> captura 1

    By captura 2

    Please I need Help!!! 

    regards
  5. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 22 Jun 2012 Link to this post

    Any Ideas? 
    I need help!!!
  6. Answer
    Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 26 Jun 2012 Link to this post

    Hello Julieta,

    Please try the following approach:
      mark-up:
    <ClientSettings AllowRowsDragDrop="true">
        <ClientEvents OnGridCreated="GridCreated" />
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
    </ClientSettings>
      JavaScript:
    function GridCreated(sender, eventArgs) {
               sender.add_rowDragging(rowDragging);
           }
           function rowDragging(sender, eventArgs) {
               var row = sender._draggedRow;
               row.innerHTML = "<img  src='http://www.adobe.com/images/shared/product_mnemonics/50x50/acrobat_50x50.gif' />";
               row.style.width = 0 + "px";
               row.style.height = 0 + "px";
           }

    That should do the trick.

    Kind regards,
    Eyup
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017