ComponentOne WebMenus and WebBars for ASP.NET (2.0) Search HelpCentral 

Selections in Groups

C1WebTopicBar's groups include several behavioral properties that help manage the selection in the groups. The selection behavioral style properties include the following:

 

·      AllowMultipleSelect – If False, only one item in the group can be selected.

·      AllowMultipleSelectInControl – If False, only a single item can be selected in the all of the groups in the control.

·      AllowSelectItem – If True, one or more items in the group can be selected.

·      AllowUnSelectItem - If True, user can unselect the item by clicking it the second time.

·      AlwaysHasSelected – If True and if AllowSelectItem = True, at minimum one item in the group can be selected.

These properties are accessible programmatically through C1WebCustomGroups object or through the design editor, C1WebTopicGroup Collection Editor.

To access the selection behavioral style properties using the C1WebTopicGroup Collection Editor

1.   Right-click on C1WebTopicBar and select Edit Groups from its C1WebTopicBar Tasks menu. The C1WebTopicGroup Collection Editor appears.

2.   Select Group – Group in the tree view and expand the Behavior node, then set the desired property.

To programmatically access the selection behavioral style properties

This method can be applied the same way for the remaining selection behavioral style properties.

·      Visual Basic

'Create an instance of the class

Dim topicbar As C1WebTopicBar = New C1WebTopicBar()

topicbar.AllowMultipleSelect.True

·      C#

// create an instance of the class

C1WebTopicBar topicbar = new C1WebTopicBar();

topicbar.AllowMultipleSelect.True;

·      Delphi

// create an instance of the class

var

topicbar: C1WebTopicBar;

begin

topicbar := C1WebTopicBar.Create;

topicbar.AllowMultipleSelect.True;

end;


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.