In the WebDayView and WebMonthView is there a way to change the default appearance of appointments? For example I want to add an icon that would appear to the left of the appointment. Also I want to hyperlink the location such clicking it would take me to another page on my web app. Is there a way to do this?
Thanks,
George
Hello.
If you want to have your own page, when creating appointment, then you need to create a custom appointment. You cannot exactly redirect to some other page and expect that the information from your custom appointment page can be related to the WebSchedule control. That's why you can inherit the Appointment class and create your own custom one. Please follow that tutorial to achieve that. This will allow you to add additional properties of the Appointment that are different from the those that are build in the WebSchedule.
After all there is a way to redirect to a custom page URL, but I will not recommend that. You can attach to the client-side event ActivityDialogOpening and then redirect to your page. See that last post in that forum thread.
As far as about the custom style of the WebMonthView, I can suggest you several options. First of all you can modify styles images of each of the Appointments by defining them in the ASP.NET page (see the image below).
So you can choose your own image and using CSS styles to place in on the left side of the appointment. You can also add styles to the individual Appointment - forum post.
Another option for Appointment customization can be using the AppointmentFormatString property. See this forum post for more information.
If you have some other information, don't hesitate to ask. Thank you for using our products.
Best regards,
Nikolay Alipiev
Hello,
I am still following your case. Have you been able to resolve the issue?
If you have any concerns or questions, please feel free to contact me, I will be glad to help you.
Thank you for choosing Infragistics components!
HI Nikolay,
Your previous response helped quite and bit and I've read the post that you linked and have started down the road of using the AppointmentFormatString. The post indicates that I should be able to use my own custom fields in the AppointmentFormatString but I'm not having much luck. I've derived a class from WebScheduleInfo and have added to it my own custom format tag.
public class FixtureScheduleInfo : Infragistics.WebUI.WebSchedule.WebScheduleInfo
{
public static string FormatTag_TYPEICONPATH = "<TYPEICONPATH>";
public FixtureScheduleInfo() : base()
}
I've also made sure that my aspx file is using my FixtureScheduleInfo and that my WebDayView and WebMonthView are referencing it as their WebScheduleInfoID. For my appointments I've derived a class from Appointment and have added a string property for TYPEICONPATH. I've also changed the AppointmentFormatString for my WebDayView and WebMonthView to "<SUBJECT> - <TYPEICONPATH>". The result is that though the subject appears as I would expect. the TYPEICONPATH doesn't display. When I look at it in the IE javascript debugger it looks like the <TYPEICONPATH> is being interpreted as HTML. It looks like that whatever is responsible for replacing the format tags with the values from the appointments is skipping over my custom format tag. Is there something that I'm missing about how this should work? Any assistance that you can provide would be greatly appreciated.
Thanks again,
Hello, George.
Here is the WebScheduleInfo members list, containing the default tags. It seems you are doing it right, using the custom tags, but as far as the code you have provided, I cannot give you more information.
But, after your custom tag is interpreted, you can then just simply try to put IMG tag referencing the source. The last one is more as a workaround, but if it appears to be working you can use it. If you still have problems, you can try to send me some sample, so that I can investigate further and in more details.
I am still following your case. Are you still experiencing the same problem?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.
Best regards,Nikolay Alipiev