XtraSchedule 显示自定义约会标题
我想更改每个约会的标题,而不是显示应用的时间
我尝试了 InitAppointmentDisplayText
事件,但它只更改了应用程序的工具提示
private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
{
e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
}
I want to change the caption of every appointment i have instead of displaying the time of the app
I tried InitAppointmentDisplayText
event but it only changes the toolTip of the app
private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
{
e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString());
}
您应该处理 InitAppointmentDisplayText 事件,并设置 Scheduler.Views.MonthView 属性,如下所示:
更新
请参阅我们文档中的以下主题,了解如何实现自定义编辑表单:
如何:使用自定义字段创建自定义 EditAppointment 表单
如何:创建自定义约会重复表单
You should handle the InitAppointmentDisplayText event and also set the Scheduler.Views.MonthView properties as shown below:
UPDATE
Please refer to the following topics in our documentation to learn how to implement custom edit forms:
How to: Create a Custom EditAppointment Form with Custom Fields
How to: Create a Custom Appointment Recurrence Form