Hi, I want to implement drag and drop opeartion as well as double click opeartion on Ultradayview appointment object.I have written the code for dodragdrop in mousedown event.I found that double click event is never getting fired if i click on the appointment object.So i try to give a check for double click by checking the clicks.However when i double click on any appointment the mousedown event is called twice and first time it sets the click to one and enters the drag mode and calls the dragdrop method.Second time it sets the click to two and fires double clickevent.I want to avoid the dragdrop method call on first mousedown event during double click.As my dargdrop method takes the timeslot from the point that's clicked ,it changes the appointment startime which is not correct.Dragdrop shouldnt be called on mouse click.How can i avoid this?
Below is the piece of code:
private void dayViewJob_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left && e.Clicks == 1) { if (dayViewJob.CalendarInfo.SelectedAppointments.Count > 0) { app = ((Infragistics.Win.UltraWinSchedule.Appointment)(((Infragistics.Win.UltraWinSchedule.UltraDayView) (sender)).CalendarInfo.SelectedAppointments.All[0])); JobID = app.Description.ToString(); if (JobID == "") return; dayViewJob.DoDragDrop(dayViewJob.CalendarInfo.SelectedAppointments.All[0], DragDropEffects.All); } } }
Thanksrickson
Hello rickson,
From what I understood I believe that this functionality is available in this control. You could see a sample which may help you in the Samples Browser.
You could locate it under Programs->Infragistics->NetAdvantage (your current infragistics version)->Windows Forms->Samples->Samples (Local)
When it loads, please navigate to the 'Calendars and Scheduling' tab and then 'Launch' the 'Logical Day' sample. Or you can type in the 'Search:' 'Logical Day'.
Please feel free to let me know if I misunderstood you or if you have any other questions.