开发者

telerik scheduler, custom provider and resources

Hey all, Im using the telerik radscheduler with a custom provider. In my custom provider, I have a number of custom resources that I want to expose on the advanced edit form. My question is how d开发者_如何学运维o I bind the controls on the form to the resources??

Any assistance is appreciated. Thanks Alex


You can use an AdvancedInsertTemplate or AdvancedEditTemplate. If you have for example a custom resource called "User" and you want to add a label in the advanced form for this user use code similar to this in the markup:

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

For more info on the Advanced templates - take a look at this demo.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜