Я пытаюсь создать пользовательскую страницу добавления для встреч для планировщика телерика. Я хочу, чтобы отображалась моя страница, а не шаблон добавления встречи, встроенный в планировщик. Я просмотрел расширенный шаблон вставки, но не думаю, что он позволяет перенаправлять на пользовательскую страницу.
Как добавить пользовательскую страницу «Добавить встречу» для планировщика телерика?
Ответы (1)
Это то, что я использую в WPF. Я предполагаю, что вы используете Silverlight, поэтому YMMV:
//in your window's constructor, add:
Sched.AddHandler(AppointmentItemsControl.SelectionChangedEvent, new SelectionChangedEventHandler(ShowCustomApptForm), true);
//then handle the event like this:
public void ShowCustomApptForm(object sender, SelectionChangedEventArgs args)
{
if (args.AddedItems.Count > 0)
{
AppointmentSlot item = args.AddedItems[args.AddedItems.Count - 1] as AppointmentSlot;
if (item != null)
{
//Get the appointment object so we can access the UniqueID
Appointment SelAppt = (Appointment)item.Occurrence.Master;
//Open the custom form, passing the uniqueid to the constructor
MyCustomForm ApptFrm = new MyCustomForm(Convert.ToInt32(SelAppt.UniqueId));
ApptFrm.Show();
}
}
}
person
SteveCav
schedule
17.03.2011