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

Group Filter getting called multiple times

1 Answer 93 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 08 Jun 2015, 03:41 PM

Hi,

 I am using RadScheduleView to display multiple calendars, I have defined group filter function in my view model and it is binded to the view definition in XAML, When I select resources and add a new calendar first time the group filter function gets called 9 times, I have just 4 resources + date group, Second time it gets called like 100 times and the application hangs. Is this a issue in group filter or am i doing something wrong.

 Thanks

vikas

 

_departmentResourceType.Resources.Add(new Resource("Department - 1", "Department"));
            _departmentResourceType.Resources.Add(new Resource("Department - 2", "Department"));            

            _locationResourceType.Resources.Add(new Resource("Location - 1", "Location"));
            _locationResourceType.Resources.Add(new Resource("Location - 2", "Location"));

            _allResourceTypes.Add(_departmentResourceType);
            _allResourceTypes.Add(_locationResourceType);

1 Answer, 1 is accepted

Sort by
0
Vikas
Top achievements
Rank 1
answered on 08 Jun 2015, 03:57 PM

It is working now, the problem was that I have the GroupDescriptionsource property defined at the parent level, Not sure why that was causing the problem, I would be interested in knowing the reason.

Here is some more information on my program is structured;

I have a window that has drop downs that display location/departments, I select multiple of those and click add a day, this creates a instance of new view model, XAML of main window has an itemscontrol for RadScheduleViews, each child VM creates a new RadScheduleView.

If i define group description at parent window view model then i run into the issue, if i define that at child view model it is ok, It seems like that with each new RadScheduleView the group descriotion property of parent view model is changed or something.

Thanks

vikas

Tags
ScheduleView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Vikas
Top achievements
Rank 1
Share this question
or