0

大家好,我正在使用带有自定义提供程序的 Telerik radscheduler。在我的自定义提供程序中,我有许多想要在高级编辑表单上公开的自定义资源。我的问题是如何将表单上的控件绑定到资源?

任何帮助表示赞赏。谢谢亚历克斯

4

1 回答 1

0

您可以使用 AdvancedInsertTemplate 或 AdvancedEditTemplate。例如,如果您有一个名为“用户”的自定义资源,并且您想在高级表单中为此用户添加标签,请在标记中使用与此类似的代码:

<asp:Label ID="UserLabel" runat="server" Text='<%# Container.Appointment.Resources.GetResourceByType("User") == null ? "None" : Container.Appointment.Resources.GetResourceByType("User").Text %>' />

有关高级模板的更多信息 - 请查看此演示

于 2011-12-18T10:12:44.513 回答