New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI animation TagHelper DropDownPopupSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[SuppressTagRendering]
public class DropDownPopupSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseDropDownPopupSettingsTagHelper

Derived Classes: AutoCompletePopupSettingsTagHelperComboBoxPopupSettingsTagHelperDropDownListPopupSettingsTagHelperDropDownTreePopupSettingsTagHelperMultiColumnComboBoxPopupSettingsTagHelperMultiSelectPopupSettingsTagHelper...

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

The popup animation settings are applicable for the dropdown components. The following example demonstrates how to configure the popup animation settings for the DropDownTree component.

csharp
@addTagHelper *, Kendo.Mvc

<kendo-dropdowntree name="dropdowntree">
    <popup-animation>
        <close duration="200" effects="fade" />
        <open duration="300" effects="slideIn:down" />
    </popup-animation>
</kendo-dropdowntree>

Constructors

Initializes a new instance of the DropDownPopupSettingsTagHelper class.

C#
public DropDownPopupSettingsTagHelper()

Properties

Specifies the element that will be used as an anchor.

C#
public string Anchor { get; set; }

Which element the popup will be appended to. The element needs to be relatively positioned.

C#
public string AppendTo { get; set; }

Configures how the popup should behave when it cannot be properly displayed and fully visible, if its origin and position settings are obeyed.Valid values are: "fit", "flip", "flip fit" and "fit flip". "Fit" allows the popup to be shifted (moved) until it is fully visible. "Flip" allows the popup to switch its position, according to its anchor. If two words are used, the first one applies to the horizontal dimension and the second one - to the vertical dimension. If one word is used, the setting is applied to both dimensions.

C#
public string Collision { get; set; }

Fires when the popup is opened

C#
public string OnActivate { get; set; }

Fires when the popup closes

C#
public string OnClose { get; set; }

Fires when the popup is closed

C#
public string OnDeactivate { get; set; }

Fires when the popup opens

C#
public string OnOpen { get; set; }

Specifies how to position the popup element based on anchor point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"

C#
public string Origin { get; set; }

Specifies which point of the popup element to attach to the anchor's origin point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"

C#
public string Position { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

SerializeEvents method.

C#
protected Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

SerializeSettings method.

C#
protected Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>