DropDownTreeBuilder
Properties
WriteAction - Func
Methods
Items(System.Action)
Defines the items in the DropDownTree
Parameters
addAction - System.Action<DropDownTreeItemFactory>
The add action.
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Items(items =>
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
)
Animation(System.Boolean)
Use to enable or disable animation of the popup element.
Parameters
enable - System.Boolean
The boolean value.
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Animation(false) //toggle effect
)
Animation(System.Action)
Configures the animation effects of the widget.
Parameters
animationAction - System.Action<PopupAnimationBuilder>
The action which configures the animation effects.
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Animation(animation =>
{
animation.Open(open =>
{
open.SlideIn(SlideDirection.Down);
})
})
)
DataTextField(System.String[])
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.
Parameters
value - System.String[]
The value for DataTextField
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.DataTextField("Name")
)
DataSource(System.Action)
Configure the DataSource of the component
Parameters
configurator - System.Action<HierarchicalDataSourceBuilder>
The action that configures the Kendo.Mvc.UI.Fluent.DropDownTreeBuilder.DataSource(System.Action{Kendo.Mvc.UI.Fluent.HierarchicalDataSourceBuilder{System.Object}}).
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.DataSource(dataSource => dataSource
.Read(read => read
.Action("Employees", "DropDownTree")
)
)
)
DataSource(System.String)
Accepts the Name of the external DataSource component that is to be used for data binding
Parameters
dataSourceId - System.String
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.DataSource("dataSourceName")
)
Value(System.Collections.IEnumerable)
Sets the value of the widget.
Parameters
value - System.Collections.IEnumerable
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Value(new string[] { "1" })
)
BindTo(System.Collections.Generic.IEnumerable)
Binds the DropDownTree to a list of items. Use if a hierarchy of items is being sent from the controller; to bind the DropDownTree declaratively, use the Items() method.
Parameters
items - System.Collections.Generic.IEnumerable<DropDownTreeItemModel>
The list of items
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.BindTo(model)
)
BindTo(System.Collections.IEnumerable,System.Action)
Binds the DropDownTree to a list of objects. The DropDownTree will create a hierarchy of items using the specified mappings.
Parameters
dataSource - System.Collections.IEnumerable
The data source.
factoryAction - System.Action<NavigationBindingFactory>
The action which will configure the mappings
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.BindTo(Model, mapping => mapping
.For<Customer>(binding => binding
.Children(c => c.Orders) // The "child" items will be bound to the the "Orders" property
.ItemDataBound((item, c) => item.Text = c.ContactName) // Map "Customer" properties to DropDownTreeItem properties
)
.For<Order<(binding => binding
.Children(o => null) // "Orders" do not have child objects so return "null"
.ItemDataBound((item, o) => item.Text = o.OrderID.ToString()) // Map "Order" properties to DropDownTreeItem properties
)
)
)
BindTo(System.Collections.Generic.IEnumerable,System.Action)
Binds the DropDownTree to a list of objects. The DropDownTree will be "flat" which means a DropDownTree item will be created for every item in the data source.
Parameters
dataSource - System.Collections.Generic.IEnumerable<T>
The data source.
itemDataBound - System.Action<DropDownTreeItem,T>
The action executed for every data bound item.
RETURNS
Returns the current instance of DropDownTreeBuilder to allow method chaining.
Example
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.BindTo(new []{"First", "Second"}, (item, value) =>
{
item.Text = value;
})
)
AdaptiveTitle(System.String)
Allows customization of the title's text in the adaptive view of the component.
Parameters
value - System.String
The value for AdaptiveTitle
RETURNS
Returns the current DropDownTreeBuilder instance.
AdaptiveSubtitle(System.String)
Allows customization of the subtitle's text in the adaptive view of the component.
Parameters
value - System.String
The value for AdaptiveSubtitle
RETURNS
Returns the current DropDownTreeBuilder instance.
AutoBind(System.Boolean)
Controls whether to bind the widget to the data source on initialization.
Parameters
value - System.Boolean
The value for AutoBind
RETURNS
Returns the current DropDownTreeBuilder instance.
AutoClose(System.Boolean)
Controls whether to close the popup when item is selected or checked.
Parameters
value - System.Boolean
The value for AutoClose
RETURNS
Returns the current DropDownTreeBuilder instance.
AutoWidth(System.Boolean)
If set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.
Parameters
value - System.Boolean
The value for AutoWidth
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAll(System.Boolean)
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.
Parameters
value - System.Boolean
The value for CheckAll
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAll()
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.
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAllTemplate(System.String)
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
Parameters
value - System.String
The value for CheckAllTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAllTemplateId(System.String)
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
Parameters
templateId - System.String
The ID of the template element for CheckAllTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAllTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for CheckAllTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAllTemplateHandler(System.String)
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
Parameters
templateHandler - System.String
The handler that returs the template for CheckAllTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
CheckAllTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
The template used to render the checkAll label. By default, the widget displays only a span element with text "Check all".
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the checkalltemplate.
RETURNS
Returns the current DropDownTreeBuilder instance.
Checkboxes(System.Action)
If true or an object, renders checkboxes beside each node. In this case the widget value should be an array.
Parameters
configurator - System.Action<DropDownTreeCheckboxesSettingsBuilder>
The configurator for the checkboxes setting.
RETURNS
Returns the current instance of DropDownTreeBuilder .
Checkboxes(System.Boolean)
If true or an object, renders checkboxes beside each node. In this case the widget value should be an array.
Parameters
enabled - System.Boolean
Enables or disables the checkboxes option.
RETURNS
Returns the current instance of DropDownTreeCheckboxesSettingsBuilder .
ClearButton(System.Boolean)
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.
Parameters
value - System.Boolean
The value for ClearButton
RETURNS
Returns the current DropDownTreeBuilder instance.
DataImageUrlField(System.String)
Sets the field of the data item that provides the image URL of the DropDownTree nodes.
Parameters
value - System.String
The value for DataImageUrlField
RETURNS
Returns the current DropDownTreeBuilder instance.
DataSpriteCssClassField(System.String)
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.
Parameters
value - System.String
The value for DataSpriteCssClassField
RETURNS
Returns the current DropDownTreeBuilder instance.
DataTextField(System.String)
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.
Parameters
value - System.String
The value for DataTextField
RETURNS
Returns the current DropDownTreeBuilder instance.
DataUrlField(System.String)
Sets the field of the data item that provides the link URL of the nodes.
Parameters
value - System.String
The value for DataUrlField
RETURNS
Returns the current DropDownTreeBuilder instance.
DataValueField(System.String)
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.
Parameters
value - System.String
The value for DataValueField
RETURNS
Returns the current DropDownTreeBuilder instance.
Delay(System.Double)
Specifies the delay in milliseconds after which the DropDownTree will start filtering dataSource.
Parameters
value - System.Double
The value for Delay
RETURNS
Returns the current DropDownTreeBuilder instance.
Enable(System.Boolean)
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.
Parameters
value - System.Boolean
The value for Enable
RETURNS
Returns the current DropDownTreeBuilder instance.
EnforceMinLength(System.Boolean)
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.
Parameters
value - System.Boolean
The value for EnforceMinLength
RETURNS
Returns the current DropDownTreeBuilder instance.
EnforceMinLength()
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.
RETURNS
Returns the current DropDownTreeBuilder instance.
FilterLabel(System.String)
When filtering is enabled, allows aria-label to be defined for the filter input element.
Parameters
value - System.String
The value for FilterLabel
RETURNS
Returns the current DropDownTreeBuilder instance.
FooterTemplate(System.String)
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.
Parameters
value - System.String
The value for FooterTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
FooterTemplateId(System.String)
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.
Parameters
templateId - System.String
The ID of the template element for FooterTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
FooterTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
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.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for FooterTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
FooterTemplateHandler(System.String)
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.
Parameters
templateHandler - System.String
The handler that returs the template for FooterTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
FooterTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the footertemplate.
RETURNS
Returns the current DropDownTreeBuilder instance.
Label(System.Action)
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.
Parameters
configurator - System.Action<DropDownTreeLabelSettingsBuilder>
The configurator for the label setting.
RETURNS
Returns the current instance of DropDownTreeBuilder .
Height(System.String)
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.
Parameters
value - System.String
The value for Height
RETURNS
Returns the current DropDownTreeBuilder instance.
IgnoreCase(System.Boolean)
If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
Parameters
value - System.Boolean
The value for IgnoreCase
RETURNS
Returns the current DropDownTreeBuilder instance.
LoadOnDemand(System.Action)
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.
Parameters
configurator - System.Action<DropDownTreeLoadOnDemandSettingsBuilder>
The configurator for the loadondemand setting.
RETURNS
Returns the current instance of DropDownTreeBuilder .
LoadOnDemand()
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.
RETURNS
Returns the current instance of DropDownTreeBuilder .
LoadOnDemand(System.Boolean)
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.
Parameters
enabled - System.Boolean
Enables or disables the loadondemand option.
RETURNS
Returns the current instance of DropDownTreeLoadOnDemandSettingsBuilder .
Messages(System.Action)
The text messages displayed in the widget. Use it to customize or localize the messages.
Parameters
configurator - System.Action<DropDownTreeMessagesSettingsBuilder>
The configurator for the messages setting.
RETURNS
Returns the current instance of DropDownTreeBuilder .
MinLength(System.Double)
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.
Parameters
value - System.Double
The value for MinLength
RETURNS
Returns the current DropDownTreeBuilder instance.
NoDataTemplate(System.String)
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.
Parameters
value - System.String
The value for NoDataTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
NoDataTemplateId(System.String)
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.
Parameters
templateId - System.String
The ID of the template element for NoDataTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
NoDataTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
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.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for NoDataTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
NoDataTemplateHandler(System.String)
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.
Parameters
templateHandler - System.String
The handler that returs the template for NoDataTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
NoDataTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
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.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the nodatatemplate.
RETURNS
Returns the current DropDownTreeBuilder instance.
Placeholder(System.String)
The hint displayed by the widget when it is empty. Not set by default.
Parameters
value - System.String
The value for Placeholder
RETURNS
Returns the current DropDownTreeBuilder instance.
Popup(System.Action)
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
Parameters
configurator - System.Action<DropDownTreePopupSettingsBuilder>
The configurator for the popup setting.
RETURNS
Returns the current instance of DropDownTreeBuilder .
HeaderTemplate(System.String)
Specifies a static HTML content, which will be rendered as a header of the popup element.
Parameters
value - System.String
The value for HeaderTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
HeaderTemplateId(System.String)
Specifies a static HTML content, which will be rendered as a header of the popup element.
Parameters
templateId - System.String
The ID of the template element for HeaderTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
HeaderTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
Specifies a static HTML content, which will be rendered as a header of the popup element.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for HeaderTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
HeaderTemplateHandler(System.String)
Specifies a static HTML content, which will be rendered as a header of the popup element.
Parameters
templateHandler - System.String
The handler that returs the template for HeaderTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
HeaderTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
Specifies a static HTML content, which will be rendered as a header of the popup element.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the headertemplate.
RETURNS
Returns the current DropDownTreeBuilder instance.
ValueTemplate(System.String)
The template used to render the value and the or the selected tags.
Parameters
value - System.String
The value for ValueTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
ValueTemplateId(System.String)
The template used to render the value and the or the selected tags.
Parameters
templateId - System.String
The ID of the template element for ValueTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
ValueTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
The template used to render the value and the or the selected tags.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for ValueTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
ValueTemplateHandler(System.String)
The template used to render the value and the or the selected tags.
Parameters
templateHandler - System.String
The handler that returs the template for ValueTemplate
RETURNS
Returns the current DropDownTreeBuilder instance.
ValueTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)
The template used to render the value and the or the selected tags.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the valuetemplate.
RETURNS
Returns the current DropDownTreeBuilder instance.
TagMode(Kendo.Mvc.UI.DropDownTreeTagMode)
Represents available tag modes of DropDownTree.
Parameters
value - DropDownTreeTagMode
The value for TagMode
RETURNS
Returns the current DropDownTreeBuilder instance.
Template(System.String)
Template for rendering each node.
Parameters
value - System.String
The value for Template
RETURNS
Returns the current DropDownTreeBuilder instance.
TemplateId(System.String)
Template for rendering each node.
Parameters
templateId - System.String
The ID of the template element for Template
RETURNS
Returns the current DropDownTreeBuilder instance.
TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)
Template for rendering each node.
Parameters
templateView - Microsoft.AspNetCore.Html.IHtmlContent
The view that contains the template for Template
RETURNS
Returns the current DropDownTreeBuilder instance.
TemplateHandler(System.String)
Template for rendering each node.
Parameters
templateHandler - System.String
The handler that returs the template for Template
RETURNS
Returns the current DropDownTreeBuilder instance.
Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)
Template for rendering each node.
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
RETURNS
Returns the current DropDownTreeBuilder instance.
Text(System.String)
The text of the widget used when the autoBind is set to false.
Parameters
value - System.String
The value for Text
RETURNS
Returns the current DropDownTreeBuilder instance.
Value(System.String)
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.
Parameters
value - System.String
The value for Value
RETURNS
Returns the current DropDownTreeBuilder instance.
ValuePrimitive(System.Boolean)
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.
Parameters
value - System.Boolean
The value for ValuePrimitive
RETURNS
Returns the current DropDownTreeBuilder instance.
ValuePrimitive()
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.
RETURNS
Returns the current DropDownTreeBuilder instance.
Filter(Kendo.Mvc.UI.FilterType)
The filtering method used to determine the suggestions for the current value. Filtration is turned off by default.
Parameters
value - FilterType
The value for Filter
RETURNS
Returns the current DropDownTreeBuilder instance.
Size(Kendo.Mvc.UI.ComponentSize)
Sets the size of the component.
Parameters
value - ComponentSize
The value for Size
RETURNS
Returns the current DropDownTreeBuilder instance.
Rounded(Kendo.Mvc.UI.Rounded)
Sets a value controlling the border radius.
Parameters
value - Rounded
The value for Rounded
RETURNS
Returns the current DropDownTreeBuilder instance.
FillMode(Kendo.Mvc.UI.FillMode)
Sets a value controlling how the color is applied.
Parameters
value - FillMode
The value for FillMode
RETURNS
Returns the current DropDownTreeBuilder instance.
AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)
Specifies the adaptive rendering of the component.
Parameters
value - AdaptiveMode
The value for AdaptiveMode
RETURNS
Returns the current DropDownTreeBuilder instance.
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<DropDownTreeEventBuilder>
The client events action.
RETURNS
Returns the current DropDownTreeBuilder instance.
Example
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Events(events => events
.Change("onChange")
)
)
UseMvvmInitialization(System.Boolean)
Specifies if the component should be initialized through MVVM on the client.
Parameters
value - System.Boolean
The value.
RETURNS
Returns the current instance.
UseMvvmInitialization()
Specifies if the component should be initialized through MVVM on the client.
RETURNS
Returns the current instance.
ToComponent()
Returns the internal view component.
RETURNS
The instance that represents the component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
RETURNS
Returns the current instance.
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
RETURNS
Returns the current instance.
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
RETURNS
Returns the current instance.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
RETURNS
Returns a DeferredWidgetBuilder instance.
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
RETURNS
Returns the current instance.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
RETURNS
Returns the current instance.
ScriptAttributes(System.Object,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Object
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)
Sets the JavaScript attributes to the initialization script.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The JavaScript attributes.
overrideAttributes - System.Boolean
Argument which determines whether attributes should be overriden.
RETURNS
Returns the current instance.
Render()
Renders the component in place.
ToHtmlString()
Returns the HTML representation of the component.
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
Returns the client template for the component.
AsModule(System.Boolean)
Specifies whether the initialization script of the component will be rendered as a JavaScript module.
Parameters
value - System.Boolean
RETURNS
Returns the current instance.