Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1005
How to add custom icon to an appointment in calendar?
posted

Hi,

I need to add an icon to the entries displayed in the calendar.  I actually want to display the recurrence icon - I am implementing my own recurrence algorithm in SQL so don't use the inbuilt mechanism, however I want to show the recurrence icon in applicable entries. 

I initially though I might be able to set a flag on the appointments to have them display the inbuilt icon, but without actually generating any recurrent entries, but the properties I was looking at are read only. :(  So I am now thinking that I probably need to use a creation or draw filter, but I have no idea which elements I need to look for or modify, and I can't get the element viewer to work with my user control (hosted in a native app), so any help would be appreciated.

Thanks,

Brian

Parents
  • 21795
    Offline posted

    Hello Satoshi,

    Thank you for contacting Infragistics Support.

    In order to add an icon to an appointment you may set Image property of appointment appearance. You may use code like thid:

    this.ultraCalendarInfo1.Appointments[i].Appearance.Image = image;

    Please note this will add an image exactly where occurrence icon appears.

    Please check attached sample solution and let me know if this is what you are looking for or if I am missing something.

    CAS-147461-V2V6C9.zip
Reply Children