Group Filter getting called multiple times

2 posts, 0 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 08 Jun 2015 Link to this post

    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);

  2. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 08 Jun 2015 Link to this post

    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

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top