如何添加自定义“添加预约” Telerik 调度程序页面?

发布于 2024-10-02 01:56:16 字数 95 浏览 2 评论 0原文

我正在尝试为 Telerik 调度程序的约会创建自定义添加页面。我希望显示我的页面而不是调度程序中内置的添加约会模板。我查看了高级插入模板,但我认为它不允许重定向到自定义页面。

I am trying to create a custom add page for appointments for telerik scheduler. I want my page to be displayed rather than the add appointment template built in the scheduler. I looked at the Advanced Insert Template but I don't think it allows redirecting to a custom page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羞稚 2024-10-09 01:56:16

这是我在 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();

                }
            }

        }

This is what I use in WPF- I assume you're using Silverlight so 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();

                }
            }

        }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文