I'm implementing group filtering in my project using the techniques found in the demo under Controls/Data/Schedule View/Grouping/Advanced. In the demo I found that if you uncheck everything it still shows appointments when I would think that no appointments should be shown since nothing in the left panel is checked.
I tried modifying
Private Function GroupFilterFunc(groupName As Object) As Boolean
Dim resource As IResource = TryCast(groupName, IResource)
Return If(resource Is Nothing, True, Me.GetEnabledGroups().Contains(resource.ResourceName, StringComparer.OrdinalIgnoreCase))
End Function
by setting
Return If(resource Is Nothing, True,
to
Return If(resource Is Nothing, False,
That causes big problems.
System.InvalidOperationException occurred
Message=Nullable object must have a value.
Source=mscorlib
StackTrace:
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.GetTimeForGroupItemInfo(long ticks = 277714285, Telerik.Windows.Controls.GroupItemInfo groupItemInfo = {Telerik.Windows.Controls.GroupItemInfo}) Line 81
C#
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.GetTimeForPoint(System.Windows.Point point = {System.Windows.Point}) Line 30
C#
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.GetTimeToCompareWithIndexTree(System.Windows.Point point = {System.Windows.Point}) Line 40
C#
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.GetTimeslotByPoint(System.Windows.Point clickedPoint = {System.Windows.Point}) Line 224
C#
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.HoverArea(System.Windows.Point clickedPoint = {System.Windows.Point}) Line 285
C#
>
Telerik.Windows.Controls.ScheduleView.dll!Telerik.Windows.Controls.ScheduleViewBase.OnMouseMove(System.Windows.Input.MouseEventArgs e = {System.Windows.Input.MouseEventArgs}) Line 2971
C#
Any ideas?
Thanks,
Greg