Search
GroupType Enumeration
See Also
 






Specifies grouping or filtering criteria for views that support grouping.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
GroupType = {}

 Members

  Member name Description

FilterByContacts

Filter by contacts.

FilterByLocations

Filter by locations.

FilterByResources

Filter by resources.

FilterByTasks

Filter by tasks.

GroupByContacts

Group by contacts.

GroupByLocations

Group by locations.

GroupByResources

Group by resources.

GroupByTasks

Group by tasks.

None

No grouping or filtering.

 Example

The following function groups calendar items according to the GroupType value provided as parameter and assigns the value to the groupType property of a calendar.

JavaScript  Copy Code
function group(value) {
 calendar.contacts.clear();
 if (value == p.GroupType.GroupByContacts) {
  // add the contacts by which to group to the calendar.contacts collection
  calendar.contacts.addRange(calendar.schedule.contacts.items());
 }
 calendar.locations.clear();
 if (value == p.GroupType.GroupByLocations) {
  // add the locations by which to group to the calendar.locations collection
  calendar.locations.addRange(calendar.schedule.locations.items());
 }
 calendar.groupType = value;
}

 See Also