Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XtraScheduler doubleclick

Iam using DevExpress xtraScheduler 10.2

How to handle the double click event in xtraScheduler (just on appointment not cell)?

I dont want to show any appointmentedit form!

I need something like Hittest in xtraGrid.

And if i double click the appointment, is it possible to get the datasource object?

like image 448
Sebi Avatar asked May 02 '26 08:05

Sebi


1 Answers

I found a way. I think that is ok:

private void Scheduler_DoubleClick(object sender, EventArgs e)
    {
        if ((Scheduler.SelectedAppointments != null) &&
            (Scheduler.SelectedAppointments.Count > 0))
        {
            MessageBox.Show("Hallo");
        }
    }

with this you can get the object of datasource:

 (myObject)Scheduler.SelectedAppointments[index].GetSourceObject(SchedulerStorage);
like image 168
Sebi Avatar answered May 03 '26 21:05

Sebi