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

How to disable drag and drop but still editing

2 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 22 Jul 2010, 07:49 AM
Hi,

is there a way to disable drag and drop feature, keeping the editing feature double-clicking the item in the radgrid scheduler?

I want the user to not moving the items in the radgrid, but they can modify appointment settings by double-clicking the right appointment.

Hoping in your answer, bye

Leonardo

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 22 Jul 2010, 08:49 AM
Hello Leonardo,

You only need to attach the 'OnClientAppointmentMoving' client event and use the following code in handler to accomplish this.

JavaScript:
<script type="text/javascript">
    function OnClientAppointmentMoving(sender, args) {
        args.set_cancel(true);
    }   
</script>


-Shinu.
0
Leo
Top achievements
Rank 1
answered on 22 Jul 2010, 09:03 AM
thanks man, it works perfectly.

bye

Leo
Tags
Scheduler
Asked by
Leo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Leo
Top achievements
Rank 1
Share this question
or