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

Group Filtering problem?

10 Answers 154 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 26 Jan 2011, 08:42 PM
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 ObjectAs Boolean
Dim resource As IResource = TryCast(groupName, IResource)

            Return If(resource Is NothingTrueMe.GetEnabledGroups().Contains(resource.ResourceName, StringComparer.OrdinalIgnoreCase))
End Function

by setting 
Return If(resource Is NothingTrue,
to
Return If(resource Is NothingFalse,
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


10 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 01 Feb 2011, 12:40 PM
Hello Greg,

RadScheduleView experienced some problems in its previous version with the described scenario. This problems is fixed in our Q3 2010 SP1 release. I suggest you download it and try it. This should solve the problem.

Regards,
Rosi
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 02 Feb 2011, 10:05 PM
I updated with 01049RadControls_for_WPF_35_2010_3_1331_DEV_hotfix.zip and I'm still having the same issue.  Was this the correct update?
It looks like I already had the version mentioned.  When I installed the controls they were put into a folder named "RadControls for WPF Q3 2010 SP1".

Thanks,
Greg
0
Rosi
Telerik team
answered on 08 Feb 2011, 02:31 PM
Hi Greg,

Yes, it is the correct version. To resolve the issue I suggest you send us running project illustrating the problem to test it locally. This will help us to investigate the problem better and provide you with a solution.

Best wishes,
Rosi
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 08 Feb 2011, 03:27 PM
Rosi,
As I stated in the original post you can reproduce this behavior using your demo program for the schedule view.

Thanks,
Greg
0
Rosi
Telerik team
answered on 14 Feb 2011, 02:37 PM
Hello Greg,

We tried to reproduce the problem with the described steps but without success. Please see the attached movie for a reference. Do we miss some step?


All the best,
Rosi
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Greg
Top achievements
Rank 1
answered on 14 Feb 2011, 02:49 PM
To make this easy go to http://demos.telerik.com/wpf/
Click Browse Controls
Click Schedule View
Click Grouping in the Groups column
Click Advanced in the Examples column
Uncheck all of the "Layer" groups in the left panel
See that appointments display even though you have no selected Layers

That's the problem.  Making the changes laid out in my original post to correct this results in "Nullable object must have a value" error.

Thanks,
Greg
0
Greg
Top achievements
Rank 1
answered on 04 Mar 2011, 09:10 PM
Telerik,
Can you help me?
0
Valeri Hristov
Telerik team
answered on 09 Mar 2011, 05:43 PM
Hello Greg,

Actually, the behavior you describe is intended (and built-in the example) - we decided that it would look odd if you filter all group headers and that's why when there are no checked checkboxes we show all group headers.

All the best,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Greg
Top achievements
Rank 1
answered on 09 Mar 2011, 07:34 PM
That's good but have you tried to setup your test project so that when all of the checkboxes are unchecked to show no values?  That's what I attempted to do and got the exceptions from within your assembly.  If you have, could you possibly share with me what I need to do differently in order to filter out everything and not get an exception?

Thanks,
Greg
0
Hristo
Telerik team
answered on 10 Mar 2011, 12:27 PM
Hi Greg,

We don't support filtering all groups. This means that you should have at least 1 DateTime group when you are in Day, Week or Month view.
We will try to improve this behavior after Q1 release.

Regards,
Hristo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
Greg
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Greg
Top achievements
Rank 1
Valeri Hristov
Telerik team
Hristo
Telerik team
Share this question
or