I have add a couple of extra fields in a CustomEditAppointmentDialog.
When i select an appointment in the scheduler I want to put the information out of one of the extra
fields in a textbox on my form.
I can reach all the information in the standard fields from Appointment class. But i can't reach the
information of the extra fields created in the CustomAppointment class.
Can someone help me out how i can reach that information?
private void radScheduler1_AppointmentSelected(object sender, SchedulerAppointmentEventArgs e)
{
if (e.Appointment.Description != null)
{
labelCalendarCustomerNo.Text = e.Appointment.CustNo; //this does not work
labelCalendarCustomerName.Text = e.Appointment.Location; //this works
labelCalendarEnd.Text = e.Appointment.End.ToString(); //this works
labelCalendarStart.Text = e.Appointment.Start.ToString(); //this works
}
}
}
public class CustomAppointment : Appointment
{
public CustomAppointment()
: base()
{
}
private string custNo = String.Empty;
public string CustNo
{
get
{
return this.custNo;
}
set
{
if (this.custNo != value)
{
this.custNo = value;
}
}
}