Add SpecialDay after init

8 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    54 posts
    Member since:
    Sep 2010

    Posted 04 Oct 2011 Link to this post

    Hello !!!

    I´m using SpecialDays in the Calendar.
    Is it possible to add one or more special days to the already existing specialdays in the calendar after it first have been rendered (added my specialdays)?

    Regards

    Fredrik
  2. Ivo
    Admin
    Ivo avatar
    90 posts

    Posted 06 Oct 2011 Link to this post

    Hi Fredrik,

    to change the number of the special days in RadCalendar, you should set another ItemTemplateSelector, defining the new set of special days.
     
    Please, find the attached sample project in which the number of the special days is changed by changing the ItemTemplateSelector property of the RadCalendar instance.

    All the best,
    Ivailo Dinkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Wolfshund
    Wolfshund avatar
    50 posts
    Member since:
    Feb 2007

    Posted 25 Oct 2011 Link to this post

    Hi Ivailo,

    is it possible to change the Specialday picture according to the culture locale, as done with the date in the example app? What I mean is, I'm writing a money tracker, and I want to show a dollar sign, or a Euro sign or Yen sign, etc. in the calender, if there were transactions available at a day, instead of showing all daily transactions.

    Thank you,
    Joerg
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Nov 2011 Link to this post

    Hi Wolfshund,

    Yes - you can just return a different template in the template selector regarding the culture you want to use. Or if you don't want a different template for each culture, you can add a converter to the image source property and return a different image regarding the culture used.

    Please let us know if you need details on the implementation.

    Best wishes, Valentin.Stoychev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Gamze
    Gamze avatar
    2 posts
    Member since:
    Aug 2013

    Posted 04 Sep 2013 Link to this post


    Hi Ivailo,
    thank you for the  example project

    Is it possible to add one or more special days to the already existing specialdays in the calendar after it first have been rendered (added my specialdays)? 
    example if I select 4 September  ,it will show smile 14 september



     


  7. Todor
    Admin
    Todor avatar
    778 posts

    Posted 05 Sep 2013 Link to this post

    Hi Gamze,

    This is exactly what the sample does. It shows you how to modify the template selector after the calendar is rendered. If you need to select a template based on the selected date you can use the following approach to check if the date is selected:

    if (button.IsSelected)
    {
        return SpecialTemplate;
    }

    If this is not the case, please explain in more details what is missing in the provided example.
     
    Regards,
    Todor
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Gamze
    Gamze avatar
    2 posts
    Member since:
    Aug 2013

    Posted 14 Sep 2013 Link to this post

    I want to change template the fifth day after the selected date
    is it possible 

    thank you.
  9. Todor
    Admin
    Todor avatar
    778 posts

    Posted 18 Sep 2013 Link to this post

    Hi Gamze,

    This is not possible. For performance considerations, the item template (whether it has smile or not) for a specific date is reeavluated only when it becomes selected/unselected or when its appointments change.
     
    Regards,
    Todor
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner