Version

GridBehaviorCollection Class Methods

For a list of all members of this type, see GridBehaviorCollection members.

Public Methods
 NameDescription
Public MethodAddAdds a new behavior to the collection.  
Public MethodClearOverloaded. Overridden. Clears the Behaviors collection  
Public MethodContainsReturns true if the collection contains this item (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Public MethodCreateBehavior<TBehavior>Looks for the behavior of provided type in the collection. If found a reference to the behavior is returned, otherwise the behavior is created and added to the collection. This method will be able to locate the already created behavior only after the grid has loaded its view state. If this method is called before the control has a chance to process its view state the creation of the behavior should only be done on initial render, not on postbacks.  
Public MethodGetBehaviorOverloaded. Gets a behavior by its name.  
Public MethodGetBehaviorByInterface<TInterface>Gets a behavior by its interface.  
Public MethodGetBehaviorByTypeGets a behavior by its type.  
Public MethodGetEnumeratorReturns an enumerator that iterates through the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Public MethodGetRoleCountGets total number of the application styling roles implemented by the behaviors in the collection.  
Public MethodIndexOfReturns the index of the object in the collection (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Public MethodLoadSettingsImplements LoadSettings of ISupportPersistence. Behaviors are theated as a complex object, not as collection.  
Public MethodRemoveOverridden. Removes a behavior from the collection  
Public MethodRemoveAt (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Public MethodSaveSettingsImplements SaveSettings of ISupportPersistence. SkipEmptyChild should be set to false in order to persist a behavior even if the behavior has nothing to persist except itself. Nothing to persist means that all of its props are having their defalts.  
Public MethodSetDirtyMarks the ViewState of every object in the collection as Dirty so that it gets stored for round tripping to the client and back. (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Public MethodToStringOverride. String representstion of the object.  
Protected Methods
 NameDescription
Protected MethodCreateViewStateJournal (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodInternalAddAppends the object to the collection (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodInternalClearOverloaded. Clears the internal collection data structure (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodInternalMoveMoves an item from one index to another within the collection (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodInternalRemoveOverloaded. Removes an item from the collection (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodLoadViewState (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodLoadViewStateItems (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodOnClearOverridden.   
Protected MethodOnClearCompletePerforms additional custom processes after clearing the contents of the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnInsertPerforms additional custom processes before inserting a new element into the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnInsertCompletePerforms additional custom processes after inserting a new element into the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnRemoveClears associated Template when an object is removed from the collection. (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodOnRemoveCompletePerforms additional custom processes after removing an element from the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnSetPerforms additional custom processes before setting a value in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnSetCompletePerforms additional custom processes after setting a value in the System.Collections.CollectionBase instance. (Inherited from System.Collections.CollectionBase)
Protected MethodOnValidateValidates that the value is not null. (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodSaveViewState (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodSaveViewStateItems (Inherited from Infragistics.Web.UI.Framework.ObjectCollection)
Protected MethodThrowMissingBehaviorExceptionThrows a NullReferenceException with a custom message about the behavior not being added.  
Protected MethodValidateOwner  
See Also