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.
精彩评论