New to Telerik UI for WPFStart a free 30-day trial

Definition

Namespace:Telerik.Windows.Controls.Scheduling

Assembly:Telerik.Windows.Scheduling.Core.dll

Syntax:

C#
public sealed class ExpandCollapseService

Inheritance: objectExpandCollapseService

Constructors

C#
public ExpandCollapseService()

Properties

C#
public IHierarchicalCollectionAdapter<HierarchicalItem> HierarchicalCollectionAdapter { get; set; }

Methods

Collapses the children of the provided data item.

C#
public bool CollapseItem(object item)
Parameters:itemobject

The data item whose children will be collapsed.

Returns:

bool

Expands the children of the provided data item to make them available. If the item doesn't have any children this method will return false.

C#
public bool ExpandItem(object item)
Parameters:itemobject

The data item whose items will be expanded.

Returns:

bool

True if the expand was successful; false otherwise.

Expands multiple items to make their children available by giving a collections of data items.

C#
public bool ExpandPath(IEnumerable<object> items)
Parameters:itemsIEnumerable<object>

The collection of items to be expanded.

Returns:

bool

Expands the children of the parent items of the provided data item.

C#
public bool ExpandToItem(object item)
Parameters:itemobject

The data item whose parents will be expanded.

Returns:

bool

True if the expand was successful; false otherwise.