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

Kendo UI DropDownTree component

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DropDownTree : WidgetBase, IHtmlAttributesContainer, INavigationItemComponent<DropDownTreeItem>, INavigationItemContainer<DropDownTreeItem>, IFormEditor

Inheritance: objectWidgetBaseDropDownTree

Implements: IFormEditorIHtmlAttributesContainerINavigationItemComponent<DropDownTreeItem>INavigationItemContainer<DropDownTreeItem>

Inherited Members WidgetBase.Render()WidgetBase.ToClientTemplate()WidgetBase.ToHtmlString()WidgetBase.VerifySettings()WidgetBase.WriteDeferredStyles(TextWriter)WidgetBase.DeferStyles()WidgetBase.ProcessSettings()WidgetBase.GetHtml(bool)WidgetBase.GetInitializator()WidgetBase.RenderHtml(TextWriter)WidgetBase.WriteLicensingScript(TextWriter)WidgetBase.WriteMvvmHtml(TextWriter)WidgetBase.WriteDeferredScriptInitialization()WidgetBase.GetService<TService>()WidgetBase.EventsWidgetBase.IdWidgetBase.SanitezeIdWidgetBase.WriterWidgetBase.InitializerWidgetBase.IsInClientTemplateWidgetBase.IsSelfInitializedWidgetBase.HasDeferredInitializationWidgetBase.HtmlAttributesWidgetBase.ScriptAttributesWidgetBase.HtmlHelperWidgetBase.ModelMetadataProviderWidgetBase.NameWidgetBase.ExplorerWidgetBase.SelectorWidgetBase.IdPrefixWidgetBase.ViewContextWidgetBase.ValueProviderWidgetBase.GeneratorWidgetBase.UrlGeneratorWidgetBase.HtmlEncoderWidgetBase.HasClientComponentWidgetBase.UseMvvmInitializationobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the DropDownTree class.

C#
public DropDownTree(ViewContext viewContext, INavigationItemAuthorization authorization)
Parameters:viewContextViewContextauthorizationINavigationItemAuthorization

Properties

Specifies the adaptive rendering of the component.

C#
public AdaptiveMode? AdaptiveMode { get; set; }

Allows customization of the subtitle's text in the adaptive view of the component.

C#
public string AdaptiveSubtitle { get; set; }

Allows customization of the title's text in the adaptive view of the component.

C#
public string AdaptiveTitle { get; set; }

Animation member.

C#
public PopupAnimation Animation { get; }

Authorization member.

C#
public INavigationItemAuthorization Authorization { get; }

Implements: INavigationItemComponent<DropDownTreeItem>.Authorization

Controls whether to bind the widget to the data source on initialization.

C#
public bool? AutoBind { get; set; }

Controls whether to close the popup when item is selected or checked.

C#
public bool? AutoClose { get; set; }

If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.

C#
public bool? AutoWidth { get; set; }

When this options is set to true and checkboxes are enabled, a tristate checkbox appears above the embedded treeview. Clicking that checkbox will check or uncheck all the loaded enabled items of the treeview.

C#
public bool? CheckAll { get; set; }

The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".

C#
public string CheckAllTemplate { get; set; }

The handler that returns the template used for CheckAllTemplate

C#
public string CheckAllTemplateHandler { get; set; }

The id of the script element used for CheckAllTemplate

C#
public string CheckAllTemplateId { get; set; }

If true or an object, renders checkboxes beside each node. In this case the widget value should be an array.

C#
public DropDownTreeCheckboxesSettings Checkboxes { get; }

Unless this option is set to false, a button will appear when hovering the widget. Clicking that button will reset the widget's value and will trigger the change event.

C#
public bool? ClearButton { get; set; }

Sets the field of the data item that provides the image URL of the DropDownTree nodes.

C#
public string DataImageUrlField { get; set; }

Gets or sets DataSource.

C#
public DataSource DataSource { get; }

Gets or sets DataSource id.

C#
public string DataSourceId { get; set; }

Sets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

C#
public string DataSpriteCssClassField { get; set; }

Sets the field of the data item that provides the text content of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

C#
public string DataTextField { get; set; }

DataTextFieldArray member.

C#
public List<string> DataTextFieldArray { get; set; }

Sets the field of the data item that provides the link URL of the nodes.

C#
public string DataUrlField { get; set; }

The field of the data item that provides the value of the widget. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

C#
public string DataValueField { get; set; }

Specifies the delay in milliseconds after which the DropDownTree will start filtering dataSource.

C#
public double? Delay { get; set; }

If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

C#
public bool? Enable { get; set; }

If set to true the widget will not show all items when the text of the search input cleared. By default, the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.

C#
public bool? EnforceMinLength { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

The filtering method used to determine the suggestions for the current value. Filtration is turned off by default.

C#
public FilterType? Filter { get; set; }

When filtering is enabled, allows aria-label to be defined for the filter input element.

C#
public string FilterLabel { get; set; }

The template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.

C#
public string FooterTemplate { get; set; }

The handler that returns the template used for FooterTemplate

C#
public string FooterTemplateHandler { get; set; }

The id of the script element used for FooterTemplate

C#
public string FooterTemplateId { get; set; }

Specifies a static HTML content, which will be rendered as a header of the popup element.

C#
public string HeaderTemplate { get; set; }

The handler that returns the template used for HeaderTemplate

C#
public string HeaderTemplateHandler { get; set; }

The id of the script element used for HeaderTemplate

C#
public string HeaderTemplateId { get; set; }

Sets max-height of the embedded treeview in pixels. The default value is 200 pixels. If set to "Auto" the height of the popup will depend on the height of the treeview.

C#
public string Height { get; set; }

If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.

C#
public bool? IgnoreCase { get; set; }

Gets or sets the item action.

C#
public Action<DropDownTreeItem> ItemAction { get; set; }

Implements: INavigationItemComponent<DropDownTreeItem>.ItemAction

Gets the items of the dropdowntree.

C#
public IList<DropDownTreeItem> Items { get; }

Implements: INavigationItemContainer<DropDownTreeItem>.Items

Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

C#
public DropDownTreeLabelSettings Label { get; }

Indicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to true causes loading the child DataSources when expanding the parent node.

C#
public DropDownTreeLoadOnDemandSettings LoadOnDemand { get; }

The text messages displayed in the widget. Use it to customize or localize the messages.

C#
public DropDownTreeMessagesSettings Messages { get; }

The minimum number of characters the user must type before a search is performed. Set to a higher value if the search could match a lot of items.

C#
public double? MinLength { get; set; }

The template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.

C#
public string NoDataTemplate { get; set; }

The handler that returns the template used for NoDataTemplate

C#
public string NoDataTemplateHandler { get; set; }

The id of the script element used for NoDataTemplate

C#
public string NoDataTemplateId { get; set; }

The hint displayed by the widget when it is empty. Not set by default.

C#
public string Placeholder { get; set; }

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

C#
public DropDownTreePopupSettings Popup { get; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

SecurityTrimming member.

C#
public SecurityTrimming SecurityTrimming { get; set; }

Implements: INavigationItemComponent<DropDownTreeItem>.SecurityTrimming

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Represents available tag modes of DropDownTree.

C#
public DropDownTreeTagMode? TagMode { get; set; }

Template for rendering each node.

C#
public string Template { get; set; }

The handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

The text of the widget used when the autoBind is set to false.

C#
public string Text { get; set; }

Define the value of the widget. It accepts 'String' when it is in single selection mode and 'Array' when multiple selection is enabled via checkboxes property.

C#
public string Value { get; set; }

Gets or sets the value as enumerable.

C#
public IEnumerable ValueArray { get; set; }

Specifies the value binding behavior for the widget. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.

C#
public bool? ValuePrimitive { get; set; }

The template used to render the value and the or the selected tags.

C#
public string ValueTemplate { get; set; }

The handler that returns the template used for ValueTemplate

C#
public string ValueTemplateHandler { get; set; }

The id of the script element used for ValueTemplate

C#
public string ValueTemplateId { get; set; }

Methods

GetElement method.

C#
protected override TagBuilder GetElement()
Returns:

TagBuilder

Overrides: WidgetBase.GetElement()

Serializes the component settings to a dictionary.

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

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)