Change the cursor icon when item is dragginng

3 posts, 0 answers
  1. reza
    reza avatar
    45 posts
    Member since:
    Apr 2011

    Posted 08 Mar 2012 Link to this post

    Hi ,
    How can I change the icon of the cursor in item dragging of a RadListBox that display it's items through template ?
    Everything work correctly but in an item template there are some parts that it's not beautiful to display in item dragging , for example there is delete button in items template and when dragging is started , this delete button is displayed by mouse cursor in dragging , how can I exclude these extra parts from cursor icon ?

    Thank you very much for your feedback
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Mar 2012 Link to this post

    Hello,

    I suppose you want to hide the delete button while dragging and shows the cursor only. If that is the case try the following JavaScript.
    JS:
    function OnClientDragging(sender, args)
    {
     document.body.style.cursor = "move";
     sender.get_draggingClueElement().style.display = "none";
    }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. reza
    reza avatar
    45 posts
    Member since:
    Apr 2011

    Posted 08 Mar 2012 Link to this post

    OK
    Thank you very much 
Back to Top