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
Hi, George.
I spent some more time on this and this is the result of my research in the WebSchedule control code.
It's not possible to add custom tag and then expect to work. This is because you are defining the TYPEICONPATH constant, but then it should be replaced dynamically by some logic with the real image source. Even defining the tag and then defining real time source image, there isn't a code to replace one with another. So then I've tried to extend either the WebScheduleInfo (as you did), and also WebDayView (as you are going to see in your sample that I've changed a bit), but unfortunately those methods, that replace tags, are internal and static and it's not easy to be overridden and changing them will break the functionality. This is approved also by the following forum post. So sorry that I've put you in the wrong direction in the beginning.
As it said in the same post, the solution can be to use a tag that is not needed, like DESCRIPTION for example. You can check the sample that I've attached you, that is using the same approach from my previous answer, plus using the DESCRIPITON tag, and then we achieve something like dynamic changing of the image. I've also applied a class on that image, so that it can be styled.
I think this is the best we can do with the current implementation of the WebSchedule I hope it fits your needs. The other option is to log a Product Idea at that site. The Product Ideas site allows you to suggest new product features, new functionalities in existing products and controls, and even request new controls and products altogether. Members of the Infragistics Community then vote for the features and suggestions they want to see added to the products, resulting in the most popular features bubbling up to the top. When planning new releases, our Product Management team will look at the most popular features and use your feedback to prioritize upcoming work.
I will wait for your feedback.
Thank you,
Nikolay Alipiev
I will try to find the what is the problem with the TYPEICONPATH and will give you more detailed information.
Thanks for the patience!
Nikolay
Thanks Nikolay,
I replaced the AppointmentFormatString as instructed and I was able to see the FC Barcelona image, however the value that I put in each appointment for TYPEICONPATH still isn't showing. Each appointment will have a different TYPEICONPATH value which was why I was going with a custom format tag. Is there something else I can try? I appreciate the time that you've been spending on this.
Best regards,
George Turner
Can you try in the sample that you've sent me to replace the AppointmentFormatString property with the following value:
Then you can use the .custom-icon class to apply the position on the element.
Thanks for the sample. I had some problems running the sample, but I will extract your code and will isolate the needed code. I will write you when I have the solution or when I found the reason for not getting your custom tag. Thank you for the patience!