Posted on Feb 15, 2011 (permalink)
RadCalendar c =
new
RadCalendar();
c.FirstDayOfWeek =
null
;
See the method (RadCalendar.):
private
static
bool
IsValidFirstDayOfWeek(
object
value)
{
DayOfWeek? nullable = (DayOfWeek?) value;
return
(Enum.IsDefined(
typeof
(DayOfWeek), nullable) || !nullable.HasValue);
// ???
}
I getting "throw ArgumentNullException: Value cannot be null.Parameter name: value"
Maybe code change to:
(!nullable.HasValue || Enum.IsDefined(
(DayOfWeek), nullable.Value));
Its really working without exceptions!
Reply
Posted on Feb 17, 2011 (permalink)
Back to Top
[ WPF Calendar Features | Documentation | Demos | Telerik TV | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below