Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
UltraMonthViewSingle - Inhibit Appointment DragDrop?
posted

From what I've read on the forum, no DrapDrop events are fired for the UltraMonthViewSingle control(?)  Regardless, the control allows you to select existing appointments and drag them to any other day cell. Two questions, is there any way to disable this, so appointments cannot be dragged? If not, is there event at all that I can trap after the drapdrop into a new day so I can examine the moved appointment(s)?

Parents
  • 230
    posted

     ActivitiesDragComplete is what i use for seeing this action. On the mouse click down i do a

    private void _monthView_MouseDown(object sender, MouseEventArgs e)
            {
                if (this._monthView.GetAppointmentFromPoint(e.X, e.Y) != null)
                {
                    _selectedAppointment = this._monthView.GetAppointmentFromPoint(e.X, e.Y);
                    _selectedAppointment.Selected = true;
                }
                else
                    _selectedAppointment = null;
            }

     to set the select appointment value so i can then update the database with the new dates.

Reply Children
No Data