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

Change the cursor icon when item is dragginng

2 Answers 106 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 08 Mar 2012, 09:54 AM
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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Mar 2012, 11:53 AM
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.
0
reza
Top achievements
Rank 1
answered on 08 Mar 2012, 01:19 PM
OK
Thank you very much 
Tags
ListBox
Asked by
reza
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
reza
Top achievements
Rank 1
Share this question
or