Catastrophic failure exception while using custom blackout state selector.

2 posts, 0 answers
  1. SJ87
    SJ87 avatar
    3 posts
    Member since:
    Nov 2016

    Posted 08 Nov 2016 Link to this post


    I'm using RadCalendar for UWP, I'm trying to blackout the future dates on it using CalendarCellStateSelector. while executing it throws an error as below:

    SeverityCodeDescriptionProjectFileLineSuppression State Error Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

    here is my code I used in calendar.xaml

            <tlControl:RadCalendar MonthViewHeaderFormat="{}{0:MMMM yyyy}" MonthViewCellFormat="{}{0:%d}" DayNameFormat="FullName"
                                   Grid.Row="1" IsTapEnabled="True" GridLinesThickness="2" GridLinesVisibility="Both"
                                   CurrentDateChanged="RadCalendar_CurrentDateChanged" SelectionMode="Single" 
                                   x:Name="radCalendar" >




    and  in calendar.xaml.cs

        public class CustomBlackoutStateSelector : CalendarCellStateSelector {
            protected override void SelectStateCore(CalendarCellStateContext context, RadCalendar container)
                if (container.DisplayMode == CalendarDisplayMode.MonthView && context.Date > DateTime.Today) {
                    context.IsBlackout = true;



    Could you please tell me how to fix this issues, I didn't see any errors in stack tracke.

    Thank you,



  2. Nikolay
    Nikolay avatar
    395 posts

    Posted 11 Nov 2016 Link to this post

    Hello SJ,

    We have tested your scenario locally and everything seems to work as expected. Please, find attached a small test app we have prepared and let us know if it works on your side as well. In case the problem persists it would be helpful for us if you could provide additional details and code for your specific scenario.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top