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

[Solved] View Changing Event

4 Answers 128 Views
Calendar for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott
Top achievements
Rank 1
Scott asked on 02 Oct 2013, 11:24 PM

I'm trying to respond to events as the Calendar changes, for example as a user moves to a new month, but I don't see any way to trap an event...like a View Changing or similar. There may be 1000's of entries and we are only loading a month at a time.


What am I missing?

4 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 03 Oct 2013, 01:16 PM
Hello Scott,

Thank you for using RadControls for Windows 8!

Most of the event trapping in the calendar control is done through commands. You can read in our online documentation about the calendar commands. Here are several articles that could be useful to you:

As for selection -- you can use the RadCalendar.SelectionChanged event.

Also, it seems that the scenario you are trying to achieve is to load a subset of your special calendar slots only for the visible month -- the easiest way to do that would be through the CalendarStyleSelector / CalendarStateSelector mechanism described here (the respective SelectStyleCore(context, container)or SelectStateCore(context, container) method is executed for each visible calendar cell on view change so you can load only the appropriate special events based on the context.Date argument value).

I hope this helps. Please, do not hesitate to contact us if you need further assistance.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Scott
Top achievements
Rank 1
answered on 08 Oct 2013, 12:47 PM
This took a little work to figure out the best way, as the Date comes through as NULL and I'm populating things with async/await, but you pointed me in the right direction. Thanks!
0
Mayur
Top achievements
Rank 1
answered on 10 Jun 2014, 05:48 AM
Hi,

After trying the MoveToNextView Command, I am able to write the custom logic but the view does not change to next month. Do I need to do anything else other than what is given in the online documentation?

Thanks,
Mayur
0
Tsvyatko
Telerik team
answered on 10 Jun 2014, 09:01 AM
Hello Mayur,

Could you please share code snippet of the setup of the custom command.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar for XAML
Asked by
Scott
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Scott
Top achievements
Rank 1
Mayur
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or