This is a migrated thread and some comments may be shown as answers.

Add SpecialDay after init

7 Answers 71 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fredrik
Top achievements
Rank 1
Fredrik asked on 04 Oct 2011, 09:59 AM
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

7 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 06 Oct 2011, 12:21 PM
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 >>

0
Wolfshund
Top achievements
Rank 2
answered on 26 Oct 2011, 04:56 AM
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
0
Valentin.Stoychev
Telerik team
answered on 01 Nov 2011, 10:33 AM
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 >>

0
Gamze
Top achievements
Rank 1
answered on 04 Sep 2013, 08:36 AM

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



 


0
Todor
Telerik team
answered on 05 Sep 2013, 02:56 PM
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 >>
0
Gamze
Top achievements
Rank 1
answered on 14 Sep 2013, 03:23 PM
I want to change template the fifth day after the selected date
is it possible 

thank you.
0
Todor
Telerik team
answered on 18 Sep 2013, 08:14 AM
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 >>
Tags
Calendar
Asked by
Fredrik
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Wolfshund
Top achievements
Rank 2
Valentin.Stoychev
Telerik team
Gamze
Top achievements
Rank 1
Todor
Telerik team
Share this question
or