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

WidgetFactory class.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

Syntax:

C#
public class WidgetFactory<TModel>

Inheritance: objectWidgetFactory<TModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

WidgetFactory method.

C#
public WidgetFactory(IHtmlHelper<TModel> htmlHelper)
Parameters:htmlHelperIHtmlHelper<TModel>

Methods

Creates a new AppBar.

C#
public virtual ActionSheetBuilder ActionSheet()
Returns:

ActionSheetBuilder

Returns a new instance of ActionSheetBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("ActionSheet")
)

Manually activate the client-side Kendo scripts. By default this is done internally.

C#
public HtmlString ActivateKendoScripts(string nonce = "", bool renderAsModule = false)
Parameters:noncestring

Specify nonce for the generated script tag.

renderAsModulebool

If set to true adds type='module' to the rendered script tag.

Returns:

HtmlString

Returns a new instance of HtmlString containing the Kendo licensing script.

Creates a new AIPrompt.

C#
public virtual AIPromptBuilder AIPrompt()
Returns:

AIPromptBuilder

Returns a new instance of AIPromptBuilder for configuring the component.

Example:
C#
@(Html.Kendo().AIPrompt()
.Name("AIPrompt")
)

Creates a new AppBar.

C#
public virtual AppBarBuilder AppBar()
Returns:

AppBarBuilder

Returns a new instance of AppBarBuilder for configuring the component.

Example:
C#
@(Html.Kendo().AppBar&lt;Order&gt;()
.Name("AppBar")
)

Creates a new ArcGauge.

C#
public virtual ArcGaugeBuilder ArcGauge()
Returns:

ArcGaugeBuilder

Returns a new instance of ArcGaugeBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ArcGauge()
.Name("ArcGauge")
)

Creates a new AutoComplete.

C#
public virtual AutoCompleteBuilder AutoComplete()
Returns:

AutoCompleteBuilder

Returns a new instance of AutoCompleteBuilder for configuring the component.

Example:
C#
@( Html.Kendo().AutoComplete()
.Name("AutoComplete")
.Items(items =&gt;
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
)

Creates a new AutoComplete.

C#
public virtual AutoCompleteBuilder AutoCompleteFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>

An expression that identifies the model property to bind to the AutoComplete.

Returns:

AutoCompleteBuilder

Returns a new instance of AutoCompleteBuilder for configuring the component.

Example:
C#
@( Html.Kendo().AutoCompleteFor(m=&gt;m.Property) )

Creates a new Avatar.

C#
public virtual AvatarBuilder Avatar()
Returns:

AvatarBuilder

Returns a new instance of AvatarBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Avatar()
.Name("Avatar")
)

Creates a new Badge.

C#
public virtual BadgeBuilder Badge()
Returns:

BadgeBuilder

Returns a new instance of BadgeBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Badge()
.Name("Badge")
)

Creates a new Barcode.

C#
public virtual BarcodeBuilder Barcode()
Returns:

BarcodeBuilder

Returns a new instance of BarcodeBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Barcode()
.Name("Barcode")
)

Creates a new BottomNavigation.

C#
public virtual BottomNavigationBuilder BottomNavigation()
Returns:

BottomNavigationBuilder

Returns a new instance of BottomNavigationBuilder for configuring the component.

Example:
C#
@(Html.Kendo().BottomNavigation()
.Name("BottomNavigation")
)

Creates a new Breadcrumb.

C#
public virtual BreadcrumbBuilder Breadcrumb()
Returns:

BreadcrumbBuilder

Returns a new instance of BreadcrumbBuilder for configuring the component.

Example:
C#
@( Html.Kendo().Breadcrumb()
.Name("Breadcrumb")
)

Creates a new Button.

C#
public virtual ButtonBuilder Button()
Returns:

ButtonBuilder

Returns a new instance of ButtonBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Button()
.Name("Button")
)

Creates a new ButtonGroup.

C#
public virtual ButtonGroupBuilder ButtonGroup()
Returns:

ButtonGroupBuilder

Returns a new instance of ButtonGroupBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ButtonGroup()
.Name("ButtonGroup")
)

Creates a new Calendar.

C#
public virtual CalendarBuilder Calendar()
Returns:

CalendarBuilder

Returns a new instance of CalendarBuilder for configuring the component.

Example:
C#
@( Html.Kendo().Calendar()
.Name("Calendar")
)

Creates a new Captcha.

C#
public virtual CaptchaBuilder Captcha()
Returns:

CaptchaBuilder

Returns a new instance of CaptchaBuilder for configuring the component.

Example:
C#
@( Html.Kendo().Captcha()
.Name("Captcha")
)

Creates a new Captcha.

C#
public virtual CaptchaBuilder CaptchaFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

CaptchaBuilder

Returns a new instance of CaptchaBuilder for configuring the component.

Example:
C#
@( Html.Kendo().CaptchaFor(m =&gt; m.Captcha)
)

Creates a new ChainOfThought.

C#
public virtual ChainOfThoughtBuilder ChainOfThought()
Returns:

ChainOfThoughtBuilder

Returns a new instance of ChainOfThoughtBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ChainOfThought()
.Name("ChainOfThought")
)

Creates a new unbound Chart<T>.

C#
public virtual ChartBuilder<object> Chart()
Returns:

ChartBuilder<object>

Returns a new instance of ChartBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series =&gt; {
series.Bar(new int[] { 1, 2, 3 }).Name("Total Sales");
})
)

Creates a Chart<T> bound to the specified data item type.

C#
public virtual ChartBuilder<T> Chart<T>() where T : class
Returns:

ChartBuilder<T>

Returns a new instance of ChartBuilder<T> for configuring the component.

Creates a new Chart<T> bound to the specified data source.

C#
public virtual ChartBuilder<T> Chart<T>(IEnumerable<T> data) where T : class
Parameters:dataIEnumerable<T>

The data source.

Returns:

ChartBuilder<T>

Returns a new instance of ChartBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().Chart(Model)
.Name("Chart")
)

Creates a new Chart<T> bound an item in ViewData.

C#
public virtual ChartBuilder<T> Chart<T>(string dataSourceViewDataKey) where T : class
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

ChartBuilder<T>

Returns a new instance of ChartBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().Chart&lt;SalesData&gt;("sales")
.Name("Chart")
)

Creates a new unbound ChartBreadcrumb.

C#
public virtual ChartBreadcrumbBuilder ChartBreadcrumb()
Returns:

ChartBreadcrumbBuilder

Returns a new instance of ChartBreadcrumbBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ChartBreadcrumb()
.Name("Breadcrumb")
.Chart("Chart")
)

Creates a new unbound ChartWizard<T>.

C#
public virtual ChartWizardBuilder<object> ChartWizard()
Returns:

ChartWizardBuilder<object>

Returns a new instance of ChartWizardBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().ChartWizard()
.Name("ChartWizard")
)

Creates a ChartWizard<T> bound to the specified data item type.

C#
public virtual ChartWizardBuilder<T> ChartWizard<T>() where T : class
Returns:

ChartWizardBuilder<T>

Returns a new instance of ChartWizardBuilder<T> for configuring the component.

Creates a new ChartWizard<T> bound to the specified data source.

C#
public virtual ChartWizardBuilder<T> ChartWizard<T>(IEnumerable<T> data) where T : class
Parameters:dataIEnumerable<T>

The data source.

Returns:

ChartWizardBuilder<T>

Returns a new instance of ChartWizardBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().ChartWizard(Model)
.Name("ChartWizard")
)

Creates a new Chat.

C#
public virtual ChatBuilder Chat()
Returns:

ChatBuilder

Returns a new instance of ChatBuilder for configuring the component.

Example:
C#
@( Html.Kendo().Chat()
.Name("Chat")
)

Creates a new CheckBox.

C#
public virtual CheckBoxBuilder CheckBox()
Returns:

CheckBoxBuilder

Returns a new instance of CheckBoxBuilder for configuring the component.

Example:
C#
@(Html.Kendo().CheckBox()
.Name("CheckBox")
);

Creates a new CheckBox.

C#
public virtual CheckBoxBuilder CheckBoxFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>

An expression that identifies the model property to bind to the checkbox.

Returns:

CheckBoxBuilder

Returns a new instance of CheckBoxBuilder for configuring the component.

Example:
C#
@( Html.Kendo().CheckBoxFor(m=&gt;m.Property) )

Creates a new CheckBoxGroup.

C#
public virtual CheckBoxGroupBuilder CheckBoxGroup()
Returns:

CheckBoxGroupBuilder

Returns a new instance of CheckBoxGroupBuilder for configuring the component.

Creates a new CheckBoxGroup for the specified model property.

C#
public virtual CheckBoxGroupBuilder CheckBoxGroupFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model property to bind to the checkbox group.

Returns:

CheckBoxGroupBuilder

Returns a new instance of CheckBoxGroupBuilder for configuring the component.

Creates a new Checkpoint.

C#
public virtual CheckpointBuilder Checkpoint()
Returns:

CheckpointBuilder

Returns a new instance of CheckpointBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Checkpoint()
.Name("Checkpoint")
)

Creates a new Chip.

C#
public virtual ChipBuilder Chip()
Returns:

ChipBuilder

Returns a new instance of ChipBuilder for configuring the component.

Example:
C#
@( Html.Kendo().Chip()
.Name("Chip")
)

Creates a new ChipList.

C#
public virtual ChipListBuilder ChipList()
Returns:

ChipListBuilder

Returns a new instance of ChipListBuilder for configuring the component.

Example:
C#
@( Html.Kendo().ChipList()
.Name("ChipList")
)

Creates a new CircularGauge.

C#
public virtual CircularGaugeBuilder CircularGauge()
Returns:

CircularGaugeBuilder

Returns a new instance of CircularGaugeBuilder for configuring the component.

Creates a new CircularProgressBar.

C#
public virtual CircularProgressBarBuilder CircularProgressBar()
Returns:

CircularProgressBarBuilder

Returns a new instance of CircularProgressBarBuilder for configuring the component.

Creates a new Citation.

C#
public virtual CitationBuilder Citation()
Returns:

CitationBuilder

Returns a new instance of CitationBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Citation()
.Name("Citation")
)

Creates a new ColorGradient.

C#
public virtual ColorGradientBuilder ColorGradient()
Returns:

ColorGradientBuilder

Returns a new instance of ColorGradientBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ColorGradient()
.Name("ColorGradient")
)

Creates a new ColorPalette.

C#
public virtual ColorPaletteBuilder ColorPalette()
Returns:

ColorPaletteBuilder

Returns a new instance of ColorPaletteBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ColorPalette()
.Name("ColorPalette")
)

Creates a new ColorPicker.

C#
public virtual ColorPickerBuilder ColorPicker()
Returns:

ColorPickerBuilder

Returns a new instance of ColorPickerBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ColorPicker()
.Name("ColorPicker")
)

Creates a new ColorPicker.

C#
public virtual ColorPickerBuilder ColorPickerFor(Expression<Func<TModel, string>> expression)
Parameters:expressionExpression<Func<TModel, string>>Returns:

ColorPickerBuilder

Returns a new instance of ColorPickerBuilder for configuring the component.

Example:
C#
@( Html.Kendo().ColorPickerFor(m=&gt;m.Property) )

Creates a new ComboBox.

C#
public virtual ComboBoxBuilder ComboBox()
Returns:

ComboBoxBuilder

Returns a new instance of ComboBoxBuilder for configuring the component.

Example:
C#
@( Html.Kendo().ComboBox()
.Name("ComboBox")
.BindTo(new List&lt;SelectListItem&gt;
{
new SelectListItem{
Text = "Text1",
Value = "Value1"
},
new SelectListItem{
Text = "Text2",
Value = "Value2"
}
})
)

Creates a new ComboBox bound to a model field.

C#
public virtual ComboBoxBuilder ComboBoxFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field.

Returns:

ComboBoxBuilder

Returns a new instance of ComboBoxBuilder for configuring the component.

Example:
C#
@Html.Kendo().ComboBoxFor(m =&gt; m.Property)

Creates a new ContextMenu.

C#
public virtual ContextMenuBuilder ContextMenu()
Returns:

ContextMenuBuilder

Returns a new instance of ContextMenuBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ContextMenu()
.Name("ContextMenu")
)

Creates a new NumericTextBox<T> with currency formatting applied.

C#
public virtual NumericTextBoxBuilder<decimal> CurrencyTextBox()
Returns:

NumericTextBoxBuilder<decimal>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().CurrencyTextBox()
.Name("CurrencyTextBox")
)

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<decimal> CurrencyTextBoxFor(Expression<Func<TModel, decimal?>> expression)
Parameters:expressionExpression<Func<TModel, decimal?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<decimal>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The CurrencyTextBoxFor method is used to create a NumericTextBox that formats its value as currency.

Example:
C#
@(Html.Kendo().CurrencyTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<decimal> CurrencyTextBoxFor(Expression<Func<TModel, decimal>> expression)
Parameters:expressionExpression<Func<TModel, decimal>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<decimal>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The CurrencyTextBoxFor method is used to create a NumericTextBox that formats its value as currency.

Example:
C#
@(Html.Kendo().CurrencyTextBoxFor(m=&gt;m.Property))

Creates a new DataSource bound to the specified data item type.

C#
public virtual DataSourceWidgetBuilder<T> DataSource<T>() where T : class
Returns:

DataSourceWidgetBuilder<T>

Returns a new instance of DataSourceWidgetBuilder<T> for configuring the component.

Example:
C#
@(Html.Kendo().DataSource&lt;Order&gt;()
.Name("DataSource")
.BindTo(Model)
)

Creates a new DateInput.

C#
public virtual DateInputBuilder DateInput()
Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@( Html.Kendo().DateInput()
.Name("DateInput")
)

Creates a new DateInput bound to model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, DateOnly?>> expression)
Parameters:expressionExpression<Func<TModel, DateOnly?>>

An expression that identifies the model field to bind to.

Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DateInput bound to model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, DateOnly>> expression)
Parameters:expressionExpression<Func<TModel, DateOnly>>

An expression that identifies the model field to bind to.

Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DateInput bound to nullable model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, DateTime?>> expression)
Parameters:expressionExpression<Func<TModel, DateTime?>>

An expression that identifies the model field to bind to.

Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DateInput bound to model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, DateTime>> expression)
Parameters:expressionExpression<Func<TModel, DateTime>>Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DateInput bound to model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, TimeOnly?>> expression)
Parameters:expressionExpression<Func<TModel, TimeOnly?>>

An expression that identifies the model field to bind to.

Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DateInput bound to model field

C#
public virtual DateInputBuilder DateInputFor(Expression<Func<TModel, TimeOnly>> expression)
Parameters:expressionExpression<Func<TModel, TimeOnly>>

An expression that identifies the model field to bind to.

Returns:

DateInputBuilder

A DateInputBuilder instance that can be used to configure the DateInput.

Example:
C#
@(Html.Kendo().DateInputFor(m =&gt; m.Property))

Creates a new DatePicker.

C#
public virtual DatePickerBuilder DatePicker()
Returns:

DatePickerBuilder

A DatePickerBuilder instance that can be used to configure the DatePicker.

Example:
C#
@( Html.Kendo().DatePicker()
.Name("DatePicker")
)

Creates a new DatePicker.

C#
public virtual DatePickerBuilder DatePickerFor(Expression<Func<TModel, DateOnly?>> expression)
Parameters:expressionExpression<Func<TModel, DateOnly?>>Returns:

DatePickerBuilder

A DatePickerBuilder instance that can be used to configure the DatePicker.

Example:
C#
@( Html.Kendo().DatePickerFor(m=&gt;m.Property) )

Creates a new DatePicker.

C#
public virtual DatePickerBuilder DatePickerFor(Expression<Func<TModel, DateOnly>> expression)
Parameters:expressionExpression<Func<TModel, DateOnly>>Returns:

DatePickerBuilder

A DatePickerBuilder instance that can be used to configure the DatePicker.

Example:
C#
@( Html.Kendo().DatePickerFor(m=&gt;m.Property) )

Creates a new DateTimePicker bound to nullable model field

C#
public virtual DatePickerBuilder DatePickerFor(Expression<Func<TModel, DateTime?>> expression)
Parameters:expressionExpression<Func<TModel, DateTime?>>Returns:

DatePickerBuilder

A DatePickerBuilder instance that can be used to configure the DatePicker.

Example:
C#
@(Html.Kendo().DateTimePickerFor(m =&gt; m.Property))

Creates a new DatePicker.

C#
public virtual DatePickerBuilder DatePickerFor(Expression<Func<TModel, DateTime>> expression)
Parameters:expressionExpression<Func<TModel, DateTime>>Returns:

DatePickerBuilder

A DatePickerBuilder instance that can be used to configure the DatePicker.

Example:
C#
@( Html.Kendo().DatePickerFor(m=&gt;m.Property) )

Creates a new DateRangePicker.

C#
public virtual DateRangePickerBuilder DateRangePicker()
Returns:

DateRangePickerBuilder

A DateRangePickerBuilder instance that can be used to configure the DateRangePicker.

Example:
C#
@( Html.Kendo().DateRangePicker()
.Name("DateRangePicker")
)

Creates a new DateTimePicker bound to nullable model field

C#
public virtual DateRangePickerBuilder DateRangePickerFor(Expression<Func<TModel, DateOnly?>> startExpression, Expression<Func<TModel, DateOnly?>> endExpression)
Parameters:startExpressionExpression<Func<TModel, DateOnly?>>endExpressionExpression<Func<TModel, DateOnly?>>Returns:

DateRangePickerBuilder

A DateRangePickerBuilder instance that can be used to configure the DateRangePicker.

Example:
C#
@(Html.Kendo().DateRangePickerFor(m=&gt;m.Start, m=&gt;m.End))

Creates a new DateTimePicker bound to nullable model field

C#
public virtual DateRangePickerBuilder DateRangePickerFor(Expression<Func<TModel, DateOnly>> startExpression, Expression<Func<TModel, DateOnly>> endExpression)
Parameters:startExpressionExpression<Func<TModel, DateOnly>>endExpressionExpression<Func<TModel, DateOnly>>Returns:

DateRangePickerBuilder

A DateRangePickerBuilder instance that can be used to configure the DateRangePicker.

Example:
C#
@(Html.Kendo().DateRangePickerFor(m=&gt;m.Start, m=&gt;m.End))

Creates a new DateTimePicker bound to nullable model field

C#
public virtual DateRangePickerBuilder DateRangePickerFor(Expression<Func<TModel, DateTime?>> startExpression, Expression<Func<TModel, DateTime?>> endExpression)
Parameters:startExpressionExpression<Func<TModel, DateTime?>>endExpressionExpression<Func<TModel, DateTime?>>Returns:

DateRangePickerBuilder

A DateRangePickerBuilder instance that can be used to configure the DateRangePicker.

Example:
C#
@(Html.Kendo().DateRangePickerFor(m=&gt;m.Start, m=&gt;m.End))

Creates a new DatePicker.

C#
public virtual DateRangePickerBuilder DateRangePickerFor(Expression<Func<TModel, DateTime>> startExpression, Expression<Func<TModel, DateTime>> endExpression)
Parameters:startExpressionExpression<Func<TModel, DateTime>>endExpressionExpression<Func<TModel, DateTime>>Returns:

DateRangePickerBuilder

A DateRangePickerBuilder instance that can be used to configure the DateRangePicker.

Example:
C#
@( Html.Kendo().DateRangePickerFor(m=&gt;m.Start, m=&gt;m.End) )

Creates a new DateTimePicker.

C#
public virtual DateTimePickerBuilder DateTimePicker()
Returns:

DateTimePickerBuilder

A DateTimePickerBuilder instance that can be used to configure the DateTimePicker.

Example:
C#
@(Html.Kendo().DateTimePicker()
.Name("DateTimePicker")
)

Creates a new DateTimePicker bound to nullable model field

C#
public virtual DateTimePickerBuilder DateTimePickerFor(Expression<Func<TModel, DateTime?>> expression)
Parameters:expressionExpression<Func<TModel, DateTime?>>Returns:

DateTimePickerBuilder

A DateTimePickerBuilder instance that can be used to configure the DateTimePicker.

Example:
C#
@(Html.Kendo().DateTimePickerFor(m =&gt; m.Property))

Creates a new DateTimePicker bound to model field

C#
public virtual DateTimePickerBuilder DateTimePickerFor(Expression<Func<TModel, DateTime>> expression)
Parameters:expressionExpression<Func<TModel, DateTime>>Returns:

DateTimePickerBuilder

A DateTimePickerBuilder instance that can be used to configure the DateTimePicker.

Example:
C#
@(Html.Kendo().DateTimePickerFor(m =&gt; m.Property))

DefaultSettings method.

C#
public HtmlString DefaultSettings(bool renderScriptTags = true, bool renderAsModule = false)
Parameters:renderScriptTagsboolrenderAsModuleboolReturns:

HtmlString

Returns the initialization scripts for widgets set as deferred, and writes them to a script file.

C#
public HtmlString DeferredScriptFile(bool module)
Parameters:modulebool

If set to true adds type='module' to the rendered script tag.

Returns:

HtmlString

Returns a new instance of HtmlString rendering the script tag pointing to the generated script file.

The script file will be named kendo-deferred-scripts-{guid}.js and will be placed in the application root.

Returns the initialization scripts for widgets set as deferred, and writes them to a script file.

C#
public HtmlString DeferredScriptFile(string nonce = "", bool renderAsModule = false)
Parameters:noncestring

The nonce value to use for the script tag.

renderAsModulebool

If set to true adds type='module' to the rendered script tag.

Returns:

HtmlString

Returns a new instance of HtmlString rendering the script tag pointing to the generated script file.

Returns the initialization scripts for widgets set as deferred

C#
public virtual HtmlString DeferredScripts(bool renderScriptTags = true, bool renderAsModule = false)
Parameters:renderScriptTagsbool

Determines if the script should be rendered within a script tag

renderAsModulebool

When rendering script tag, determines if the script tag should have the type attribute set to "module"

Returns:

HtmlString

Returns a new instance of HtmlString containing the deferred scripts.

Returns the initialization scripts for the specified widget.

C#
public virtual HtmlString DeferredScriptsFor(string name, bool renderScriptTags = true, bool renderAsModule = false)
Parameters:namestring

The name of the widget.

renderScriptTagsbool

Determines if the script should be rendered within a script tag

renderAsModulebool

Determines if the script should be rendered as a module.

Returns:

HtmlString

Returns a new instance of HtmlString containing the deferred scripts.

Creates a Diagram()

C#
public virtual DiagramBuilder<object, object> Diagram()
Returns:

DiagramBuilder<object, object>

A DiagramBuilder<TShapeModel, TConnectionModel> instance that can be used to configure the Diagram.

Example:
C#
@( Html.Kendo().Diagram()
.Name("Diagram")
)

Creates a Diagram()

C#
public virtual DiagramBuilder<TShapeModel, TConnectionModel> Diagram<TShapeModel, TConnectionModel>() where TShapeModel : class where TConnectionModel : class
Returns:

DiagramBuilder<TShapeModel, TConnectionModel>

A DiagramBuilder<TShapeModel, TConnectionModel> instance that can be used to configure the Diagram.

Example:
C#
@( Html.Kendo().Diagram()
.Name("Diagram")
)

Creates a new Window.

C#
public virtual DialogBuilder Dialog()
Returns:

DialogBuilder

A DialogBuilder instance that can be used to configure the Dialog.

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
)

Creates a new DockManager.

C#
public virtual DockManagerBuilder DockManager()
Returns:

DockManagerBuilder

A DockManagerBuilder instance that can be used to configure the DockManager.

Example:
C#
@( Html.Kendo().DockManager()
.Name("DockManager")
)

Creates a new Drawer.

C#
public virtual DrawerBuilder Drawer()
Returns:

DrawerBuilder

A DrawerBuilder instance that can be used to configure the Drawer.

Example:
C#
@( Html.Kendo().Drawer()
.Name("Drawer")
)

Creates a new DropDownButton.

C#
public virtual DropDownButtonBuilder DropDownButton()
Returns:

DropDownButtonBuilder

A DropDownButtonBuilder instance that can be used to configure the DropDownButton.

Example:
C#
@( Html.Kendo().DropDownButton()
.Name("DropDownButton")
)

Creates a new DropDownList.

C#
public virtual DropDownListBuilder DropDownList()
Returns:

DropDownListBuilder

A DropDownListBuilder instance that can be used to configure the DropDownList.

Example:
C#
@( Html.Kendo().DropDownList()
.Name("DropDownList")
.Items(items =&gt;
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
)

Creates a new DropDownList bound to a model field.

C#
public virtual DropDownListBuilder DropDownListFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field to bind to.

Returns:

DropDownListBuilder

A DropDownListBuilder instance that can be used to configure the DropDownList.

Example:
C#
@Html.Kendo().DropDownListFor(m =&gt; m.Property)

Creates a new DropDownTree.

C#
public virtual DropDownTreeBuilder DropDownTree()
Returns:

DropDownTreeBuilder

A DropDownTreeBuilder instance that can be used to configure the DropDownTree.

Example:
C#
@( Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Items(items =&gt;
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
)

Creates a new DropDownTree bound to a model field.

C#
public virtual DropDownTreeBuilder DropDownTreeFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field to bind to.

Returns:

DropDownTreeBuilder

A DropDownTreeBuilder instance that can be used to configure the DropDownTree.

Example:
C#
@Html.Kendo().DropDownTreeFor(m =&gt; m.Property)

Creates a Editor()

C#
public virtual EditorBuilder Editor()
Returns:

EditorBuilder

A EditorBuilder instance that can be used to configure the Editor.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
)

Creates a new Editor() UI component.

C#
public virtual EditorBuilder EditorFor(Expression<Func<TModel, string>> expression)
Parameters:expressionExpression<Func<TModel, string>>

An expression that identifies the model field to bind to.

Returns:

EditorBuilder

A EditorBuilder instance that can be used to configure the Editor.

Example:
C#
@( Html.Kendo().EditorFor(m=&gt;m.Property)
)

Creates a new ExpansionPanel.

C#
public virtual ExpansionPanelBuilder ExpansionPanel()
Returns:

ExpansionPanelBuilder

A ExpansionPanelBuilder instance that can be used to configure the ExpansionPanel.

Example:
C#
@(Html.Kendo().ExpansionPanel()
.Name("ExpansionPanel")
)

Creates a new FileManager.

C#
public virtual FileManagerBuilder FileManager()
Returns:

FileManagerBuilder

A FileManagerBuilder instance that can be used to configure the FileManager.

Example:
C#
@( Html.Kendo().FileManager()
.Name("fileManager")
)

Creates a new Filter<T>.

C#
public virtual FilterBuilder<T> Filter<T>() where T : class
Returns:

FilterBuilder<T>

A FilterBuilder<T> instance that can be used to configure the Filter.

Example:
C#
@(Html.Kendo().Filter&lt;Order&gt;()
.Name("Filter")
)

Creates a new FlatColorPicker.

C#
public virtual FlatColorPickerBuilder FlatColorPicker()
Returns:

FlatColorPickerBuilder

A FlatColorPickerBuilder instance that can be used to configure the FlatColorPicker.

Example:
C#
@(Html.Kendo().FlatColorPicker()
.Name("FlatColorPicker")
)

Creates a new FloatingActionButton.

C#
public virtual FloatingActionButtonBuilder FloatingActionButton()
Returns:

FloatingActionButtonBuilder

A FloatingActionButtonBuilder instance that can be used to configure the FloatingActionButton.

Example:
C#
@(Html.Kendo().FloatingActionButton()
.Name("FloatingActionButton")
)

Creates a new FloatingToolBar.

C#
public virtual FloatingToolBarBuilder FloatingToolBar()
Returns:

FloatingToolBarBuilder

Returns a new instance of FloatingToolBarBuilder for configuring the component.

Example:
C#
@(Html.Kendo().FloatingToolBar()
.Name("FloatingToolBar")
)

Creates a new Form<T>.

C#
public virtual FormBuilder<object> Form()
Returns:

FormBuilder<object>

A FormBuilder<T> instance that can be used to configure the Form.

Example:
C#
@(Html.Kendo().Form&lt;Order&gt;()
.Name("Form")
)

Creates a new Form<T>.

C#
public virtual FormBuilder<T> Form<T>() where T : class
Returns:

FormBuilder<T>

A FormBuilder<T> instance that can be used to configure the Form.

Example:
C#
@(Html.Kendo().Form&lt;Order&gt;()
.Name("Form")
)

Creates a new Gantt<TTaskModel, TDependenciesModel>.

C#
public virtual GanttBuilder<TTaskModel, TDependenciesModel> Gantt<TTaskModel, TDependenciesModel>() where TTaskModel : class, IGanttTask where TDependenciesModel : class, IGanttDependency
Returns:

GanttBuilder<TTaskModel, TDependenciesModel>

A GanttBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt.

Example:
C#
@( Html.Kendo().Gantt()
)

Creates a new Gantt<TTaskModel, TDependenciesModel> bound to the specified data source.

C#
public virtual GanttBuilder<TTaskModel, TDependenciesModel> Gantt<TTaskModel, TDependenciesModel>(IEnumerable<TTaskModel> dataSource, IEnumerable<TDependenciesModel> dependenciesDataSource = null) where TTaskModel : class, IGanttTask where TDependenciesModel : class, IGanttDependency
Parameters:dataSourceIEnumerable<TTaskModel>

The data source.

dependenciesDataSourceIEnumerable<TDependenciesModel>

The dependencies data source.

Returns:

GanttBuilder<TTaskModel, TDependenciesModel>

A GanttBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt.

Example:
C#
@( Html.Kendo().Gantt(ViewBag.Tasks)
.Name("Gantt")
)

Creates a new Gantt<TTaskModel, TDependenciesModel> bound an item in ViewData.

C#
public virtual GanttBuilder<TTaskModel, TDependenciesModel> Gantt<TTaskModel, TDependenciesModel>(string dataSourceViewDataKey, string dependenciesDataSourceViewDataKey = null) where TTaskModel : class, IGanttTask where TDependenciesModel : class, IGanttDependency
Parameters:dataSourceViewDataKeystring

The data source view data key.

dependenciesDataSourceViewDataKeystring

The dependencies data source view data key.

Returns:

GanttBuilder<TTaskModel, TDependenciesModel>

A GanttBuilder<TTaskModel, TDependenciesModel> instance that can be used to configure the Gantt.

Example:
C#
@( Html.Kendo().Gantt("tasks")
.Name("Gantt")
)

GetExpressionName{TProperty} method.

C#
protected string GetExpressionName<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

string

GetModelExplorer{TProperty} method.

C#
protected ModelExplorer GetModelExplorer<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

ModelExplorer

Creates a new Grid<T> bound to the specified data item type.

C#
public virtual GridBuilder<T> Grid<T>() where T : class
Returns:

GridBuilder<T>

A GridBuilder<T> instance that can be used to configure the Grid.

Example:
C#
@(Html.Kendo().Grid&lt;Order&gt;()
.Name("Grid")
.BindTo(Model)
)

Creates a new Grid<T> bound to the specified data source.

C#
public virtual GridBuilder<T> Grid<T>(IEnumerable<T> dataSource) where T : class
Parameters:dataSourceIEnumerable<T>

The data source.

Returns:

GridBuilder<T>

A GridBuilder<T> instance that can be used to configure the Grid.

Example:
C#
@(Html.Kendo().Grid(Model)
.Name("Grid")
)

Creates a new Grid<T> bound an item in ViewData.

C#
public virtual GridBuilder<T> Grid<T>(string dataSourceViewDataKey) where T : class
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

GridBuilder<T>

A GridBuilder<T> instance that can be used to configure the Grid.

Example:
C#
@(Html.Kendo().Grid&lt;Order&gt;("orders")
.Name("Grid")
)

Creates a new GridLayout.

C#
public virtual GridLayoutBuilder GridLayout()
Returns:

GridLayoutBuilder

A GridLayoutBuilder instance that can be used to configure the GridLayout.

Example:
C#
@( Html.Kendo().GridLayout()
.Name("GridLayout")
)

Creates a new ImageEditor.

C#
public virtual ImageEditorBuilder ImageEditor()
Returns:

ImageEditorBuilder

A ImageEditorBuilder instance that can be used to configure the ImageEditor.

Example:
C#
@( Html.Kendo().ImageEditor()
.Name("imageEditor")
)

Creates a new InlineAIPrompt.

C#
public virtual InlineAIPromptBuilder InlineAIPrompt()
Returns:

InlineAIPromptBuilder

Returns a new instance of InlineAIPromptBuilder for configuring the component.

Example:
C#
@(Html.Kendo().InlineAIPrompt()
.Name("inlineaiprompt")
)

Creates a new NumericTextBox<T> bound to integer with default integer formatting applied.

C#
public virtual NumericTextBoxBuilder<int> IntegerTextBox()
Returns:

NumericTextBoxBuilder<int>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().IntegerTextBox()
.Name("IntegerTextBox")
)

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<int> IntegerTextBoxFor(Expression<Func<TModel, int?>> expression)
Parameters:expressionExpression<Func<TModel, int?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<int>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The IntegerTextBoxFor method is used to create a NumericTextBox that formats its value as an integer.

Example:
C#
@(Html.Kendo().IntegerTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<int> IntegerTextBoxFor(Expression<Func<TModel, int>> expression)
Parameters:expressionExpression<Func<TModel, int>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<int>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The IntegerTextBoxFor method is used to create a NumericTextBox that formats its value as an integer.

Example:
C#
@(Html.Kendo().IntegerTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<long> IntegerTextBoxFor(Expression<Func<TModel, long?>> expression)
Parameters:expressionExpression<Func<TModel, long?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<long>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The IntegerTextBoxFor method is used to create a NumericTextBox that formats its value as an integer.

Example:
C#
@(Html.Kendo().IntegerTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<short> IntegerTextBoxFor(Expression<Func<TModel, short?>> expression)
Parameters:expressionExpression<Func<TModel, short?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<short>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The IntegerTextBoxFor method is used to create a NumericTextBox that formats its value as an integer.

Example:
C#
@(Html.Kendo().IntegerTextBoxFor(m=&gt;m.Property))

Creates a new LinearGauge.

C#
public virtual LinearGaugeBuilder LinearGauge()
Returns:

LinearGaugeBuilder

A LinearGaugeBuilder instance that can be used to configure the LinearGauge.

Example:
C#
@( Html.Kendo().LinearGauge()
.Name("LinearGauge")
)

Creates a new LinearGauge.

C#
public virtual LinearGaugeBuilder LinearGaugeFor<TValue>(Expression<Func<TModel, TValue?>> expression) where TValue : struct, IComparable
Parameters:expressionExpression<Func<TModel, TValue?>>

An expression that identifies the model property to bind the LinearGauge to.

Returns:

LinearGaugeBuilder

A LinearGaugeBuilder instance that can be used to configure the LinearGauge.

Example:
C#
@( Html.Kendo().LinearGaugeFor(m=&gt; m.Property)
)

Creates a new LinearGauge.

C#
public virtual LinearGaugeBuilder LinearGaugeFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model property to bind the LinearGauge to.

Returns:

LinearGaugeBuilder

A LinearGaugeBuilder instance that can be used to configure the LinearGauge.

Example:
C#
@( Html.Kendo().LinearGaugeFor(m=&gt; m.Property)
)

Creates a new ListBox bound to the specified data item type.

C#
public virtual ListBoxBuilder ListBox()
Returns:

ListBoxBuilder

A ListBoxBuilder instance that can be used to configure the ListBox.

Example:
C#
@(Html.Kendo().ListBox&lt;Order&gt;()
.Name("ListBox")
.BindTo(Model)
)

Creates a new ListBox bound to the specified data source.

C#
public virtual ListBoxBuilder ListBox(IEnumerable dataSource)
Parameters:dataSourceIEnumerable

The data source.

Returns:

ListBoxBuilder

A ListBoxBuilder instance that can be used to configure the ListBox.

Example:
C#
@(Html.Kendo().ListBox(Model)
.Name("ListBox")
)

Creates a new ListBox bound an item in ViewData.

C#
public virtual ListBoxBuilder ListBox(string dataSourceViewDataKey)
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

ListBoxBuilder

A ListBoxBuilder instance that can be used to configure the ListBox.

Example:
C#
@(Html.Kendo().ListBox&lt;Order&gt;("orders")
.Name("ListBox")
)

Creates a new ListView<T> bound to the specified data item type.

C#
public virtual ListViewBuilder<T> ListView<T>() where T : class
Returns:

ListViewBuilder<T>

A ListViewBuilder<T> instance that can be used to configure the ListView.

Example:
C#
@(Html.Kendo().ListView&lt;Order&gt;()
.Name("ListView")
.BindTo(Model)
)

Creates a new ListView<T> bound to the specified data source.

C#
public virtual ListViewBuilder<T> ListView<T>(IEnumerable<T> dataSource) where T : class
Parameters:dataSourceIEnumerable<T>

The data source.

Returns:

ListViewBuilder<T>

A ListViewBuilder<T> instance that can be used to configure the ListView.

Example:
C#
@(Html.Kendo().ListView(Model)
.Name("ListView")
)

Creates a new ListView<T> bound an item in ViewData.

C#
public virtual ListViewBuilder<T> ListView<T>(string dataSourceViewDataKey) where T : class
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

ListViewBuilder<T>

A ListViewBuilder<T> instance that can be used to configure the ListView.

Example:
C#
@(Html.Kendo().ListView&lt;Order&gt;("orders")
.Name("ListView")
)

Creates a new Loader.

C#
public virtual LoaderBuilder Loader()
Returns:

LoaderBuilder

A LoaderBuilder instance that can be used to configure the Loader.

Example:
C#
@( Html.Kendo().Loader()
.Name("Loader")
)

Creates a new Map.

C#
public virtual MapBuilder Map()
Returns:

MapBuilder

A MapBuilder instance that can be used to configure the Map.

Example:
C#
@( Html.Kendo().Map()
.Name("Map")
)

Creates a new MaskedTextBox.

C#
public virtual MaskedTextBoxBuilder MaskedTextBox()
Returns:

MaskedTextBoxBuilder

A MaskedTextBoxBuilder instance that can be used to configure the MaskedTextBox.

Example:
C#
@( Html.Kendo().MaskedTextBox()
.Name("MaskedTextBox")
)

Creates a new MaskedTextBox.

C#
public virtual MaskedTextBoxBuilder MaskedTextBoxFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>

An expression that identifies the model field to bind to.

Returns:

MaskedTextBoxBuilder

A MaskedTextBoxBuilder instance that can be used to configure the MaskedTextBox.

Example:
C#
@( Html.Kendo().MaskedTextBoxFor(m=&gt; m.Property)
)

Creates a new MediaPlayer bound to the specified data item type.

C#
public virtual MediaPlayerBuilder MediaPlayer()
Returns:

MediaPlayerBuilder

A MediaPlayerBuilder instance that can be used to configure the MediaPlayer.

Example:
C#
@(Html.Kendo().MediaPlayer()
.Name("MediaPlayer")
)

Creates a new Menu.

C#
public virtual MenuBuilder Menu()
Returns:

MenuBuilder

A MenuBuilder instance that can be used to configure the Menu.

Example:
C#
@(Html.Kendo().Menu()
.Name("Menu")
)

Creates a new MultiColumnComboBox.

C#
public virtual MultiColumnComboBoxBuilder MultiColumnComboBox()
Returns:

MultiColumnComboBoxBuilder

A MultiColumnComboBoxBuilder instance that can be used to configure the MultiColumnComboBox.

Example:
C#
@( Html.Kendo().MultiColumnComboBox()
.Name("MultiColumnComboBox")
.BindTo(new List&lt;SelectListItem&gt;
{
new SelectListItem{
Text = "Text1",
Value = "Value1"
},
new SelectListItem{
Text = "Text2",
Value = "Value2"
}
})
)

Creates a new MultiColumnComboBox bound to a model field.

C#
public virtual MultiColumnComboBoxBuilder MultiColumnComboBoxFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field to bind to.

Returns:

MultiColumnComboBoxBuilder

A MultiColumnComboBoxBuilder instance that can be used to configure the MultiColumnComboBox.

Example:
C#
@Html.Kendo().MultiColumnComboBoxFor(m =&gt; m.Property)

Creates a new MultiSelect.

C#
public virtual MultiSelectBuilder MultiSelect()
Returns:

MultiSelectBuilder

A MultiSelectBuilder instance that can be used to configure the MultiSelect.

Example:
C#
@( Html.Kendo().MultiSelect()
.Name("MultiSelect")
.Items(items =&gt;
{
items.Add().Text("First Item");
items.Add().Text("Second Item");
})
)

Creates a new MultiSelect bound to a model field.

C#
public virtual MultiSelectBuilder MultiSelectFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field to bind to.

Returns:

MultiSelectBuilder

A MultiSelectBuilder instance that can be used to configure the MultiSelect.

Example:
C#
@Html.Kendo().MultiSelectFor(m =&gt; m.Property)

Creates a new MultiViewCalendar.

C#
public virtual MultiViewCalendarBuilder MultiViewCalendar()
Returns:

MultiViewCalendarBuilder

A MultiViewCalendarBuilder instance that can be used to configure the MultiViewCalendar.

Example:
C#
@( Html.Kendo().MultiViewCalendar()
.Name("MultiViewCalendar")
)

Creates a Notification()

C#
public virtual NotificationBuilder Notification()
Returns:

NotificationBuilder

A NotificationBuilder instance that can be used to configure the Notification.

Example:
C#
@( Html.Kendo().Notification()
.Name("Notification1");
)

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<double> NumericTextBox()
Returns:

NumericTextBoxBuilder<double>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("NumericTextBox")
)

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<T> NumericTextBox<T>() where T : struct
Returns:

NumericTextBoxBuilder<T>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().NumericTextBox&lt;double&gt;()
.Name("NumericTextBox")
)

Creates a new NumericTextBox<T>().

C#
public virtual NumericTextBoxBuilder<TValue> NumericTextBoxFor<TValue>(Expression<Func<TModel, TValue?>> expression) where TValue : struct
Parameters:expressionExpression<Func<TModel, TValue?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<TValue>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().NumericTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<TValue> NumericTextBoxFor<TValue>(Expression<Func<TModel, TValue>> expression) where TValue : struct
Parameters:expressionExpression<Func<TModel, TValue>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<TValue>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().NumericTextBoxFor(m=&gt;m.NullableProperty))

Creates a OrgChart<T>()

C#
public virtual OrgChartBuilder<T> OrgChart<T>() where T : class
Returns:

OrgChartBuilder<T>

A OrgChartBuilder<T> instance that can be used to configure the OrgChart.

Example:
C#
@(Html.Kendo().OrgChart()
.Name("OrgChart")
)

Creates a new OTPInput.

C#
public virtual OTPInputBuilder OTPInput()
Returns:

OTPInputBuilder

A OTPInputBuilder instance that can be used to configure the OTPInput.

Example:
C#
@(Html.Kendo().OTPInput()
.Name("otpinput")
)

Creates a new OTPInput.

C#
public virtual OTPInputBuilder OTPInputFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>

An expression that identifies the model property to bind to the OTPInput.

Returns:

OTPInputBuilder

A OTPInputBuilder instance that can be used to configure the OTPInput.

Example:
C#
@( Html.Kendo().OTPInput(m =&gt; m.Password) )

OverrideIcons method.

C#
public HtmlString OverrideIcons(bool renderScriptTags = true, bool renderAsModule = false)
Parameters:renderScriptTagsboolrenderAsModuleboolReturns:

HtmlString

Creates a new Pager.

C#
public virtual PagerBuilder Pager()
Returns:

PagerBuilder

A PagerBuilder instance that can be used to configure the Pager.

Example:
C#
@( Html.Kendo().Pager()
.Name("Pager")
)

Creates a new PanelBar.

C#
public virtual PanelBarBuilder PanelBar()
Returns:

PanelBarBuilder

A PanelBarBuilder instance that can be used to configure the PanelBar.

Example:
C#
@( Html.Kendo().PanelBar()
.Name("PanelBar")
.Items(items =&gt;
{
items.Add().Text("First");
items.Add().Text("Second");
})
)

Creates a new PDFViewer.

C#
public virtual PDFViewerBuilder PDFViewer()
Returns:

PDFViewerBuilder

A PDFViewerBuilder instance that can be used to configure the PDFViewer.

Example:
C#
@( Html.Kendo().PDFViewer()
.Name("PanelBar")
)

Creates a new NumericTextBox<T> with percentage formatting applied.

C#
public virtual NumericTextBoxBuilder<double> PercentTextBox()
Returns:

NumericTextBoxBuilder<double>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

Example:
C#
@(Html.Kendo().PercentTextBox()
.Name("PercentTextBox")
)

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<double> PercentTextBoxFor(Expression<Func<TModel, double?>> expression)
Parameters:expressionExpression<Func<TModel, double?>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<double>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The PercentTextBoxFor method is used to create a NumericTextBox that formats its value as a percentage.

Example:
C#
@(Html.Kendo().PercentTextBoxFor(m=&gt;m.Property))

Creates a new NumericTextBox<T>.

C#
public virtual NumericTextBoxBuilder<double> PercentTextBoxFor(Expression<Func<TModel, double>> expression)
Parameters:expressionExpression<Func<TModel, double>>

Expression that identifies the model field to bind to.

Returns:

NumericTextBoxBuilder<double>

A NumericTextBoxBuilder<T> instance that can be used to configure the NumericTextBox.

The PercentTextBoxFor method is used to create a NumericTextBox that formats its value as a percentage.

Example:
C#
@(Html.Kendo().PercentTextBoxFor(m=&gt;m.Property))

Creates a new PivotConfigurator.

C#
public virtual PivotConfiguratorBuilder PivotConfigurator()
Returns:

PivotConfiguratorBuilder

A PivotConfiguratorBuilder instance that can be used to configure the PivotConfigurator.

Example:
C#
@( Html.Kendo().PivotConfigurator()
.Name("PivotConfigurator")
)
C#
public virtual PivotConfiguratorButtonBuilder PivotConfiguratorButton()
Returns:

PivotConfiguratorButtonBuilder

A PivotConfiguratorButtonBuilder instance that can be used to configure the PivotConfiguratorButton.

Example:
C#
@( Html.Kendo().PivotConfiguratorButton()
.Name("PivotConfiguratorButton")
)

Creates a new PivotConfiguratorV2.

C#
public virtual PivotConfiguratorV2Builder PivotConfiguratorV2()
Returns:

PivotConfiguratorV2Builder

A PivotConfiguratorV2Builder instance that can be used to configure the PivotConfiguratorV2.

Example:
C#
@( Html.Kendo().PivotConfigurator()
.Name("PivotConfigurator")
)

Creates a new PivotContainer.

C#
public virtual PivotContainerBuilder PivotContainer()
Returns:

PivotContainerBuilder

A PivotContainerBuilder instance that can be used to configure the PivotContainer.

Example:
C#
@( Html.Kendo().PivotContainer()
.Name("PivotContainer")
)

Creates a new PivotGrid<T>.

C#
public virtual PivotGridBuilder<object> PivotGrid()
Returns:

PivotGridBuilder<object>

A PivotGridBuilder<T> instance that can be used to configure the PivotGrid.

Example:
C#
@( Html.Kendo().PivotGrid()
.Name("PivotGrid")
)

Creates a new PivotGrid<T>.

C#
public virtual PivotGridBuilder<T> PivotGrid<T>() where T : class
Returns:

PivotGridBuilder<T>

A PivotGridBuilder<T> instance that can be used to configure the PivotGrid.

Example:
C#
@( Html.Kendo().PivotGrid&lt;EventData&gt;()
.Name("PivotGrid")
)

Creates a new PivotGridV2<T>.

C#
public virtual PivotGridV2Builder<object> PivotGridV2()
Returns:

PivotGridV2Builder<object>

A PivotGridV2Builder<T> instance that can be used to configure the PivotGrid.

Example:
C#
@( Html.Kendo().PivotGridV2()
.Name("PivotGrid")
)

Creates a new PivotGridV2<T>.

C#
public virtual PivotGridV2Builder<T> PivotGridV2<T>() where T : class
Returns:

PivotGridV2Builder<T>

A PivotGridV2Builder<T> instance that can be used to configure the PivotGrid.

Example:
C#
@( Html.Kendo().PivotGridV2&lt;EventData&gt;()
.Name("PivotGrid")
)

Creates a new Popover.

C#
public virtual PopoverBuilder Popover()
Returns:

PopoverBuilder

A PopoverBuilder instance that can be used to configure the Popover.

Example:
C#
@(Html.Kendo().Popover()
.Name("Popover")
)

Creates a new ProgressBar.

C#
public virtual ProgressBarBuilder ProgressBar()
Returns:

ProgressBarBuilder

A ProgressBarBuilder instance that can be used to configure the ProgressBar.

Example:
C#
@( Html.Kendo().ProgressBar()
.Name("ProgressBar")
)

Creates a new PromptBox.

C#
public virtual PromptBoxBuilder PromptBox()
Returns:

PromptBoxBuilder

Returns a new instance of PromptBoxBuilder for configuring the component.

Example:
C#
@(Html.Kendo().PromptBox()
.Name("PromptBox")
)

Creates a new PropertyGrid<T>.

C#
public virtual PropertyGridBuilder<T> PropertyGrid<T>() where T : class
Returns:

PropertyGridBuilder<T>

A PropertyGridBuilder<T> instance that can be used to configure the PropertyGrid.

Example:
C#
@(Html.Kendo().PropertyGrid()
.Name("PropertyGrid")
)

Creates a new PropertyGrid<T>.

C#
public virtual PropertyGridBuilder<T> PropertyGrid<T>(T model) where T : class
Parameters:modelT

The model to be used by the PropertyGrid.

Returns:

PropertyGridBuilder<T>

A PropertyGridBuilder<T> instance that can be used to configure the PropertyGrid.

Example:
C#
@(Html.Kendo().PropertyGrid()
.Name("PropertyGrid")
)

Creates a new QRCode.

C#
public virtual QRCodeBuilder QRCode()
Returns:

QRCodeBuilder

A QRCodeBuilder instance that can be used to configure the QRCode.

Example:
C#
@( Html.Kendo().QRCode()
.Name("QRCode")
)

Creates a new RadialGauge.

C#
public virtual RadialGaugeBuilder RadialGauge()
Returns:

RadialGaugeBuilder

A RadialGaugeBuilder instance that can be used to configure the RadialGauge.

Example:
C#
@( Html.Kendo().RadialGauge()
.Name("RadialGauge")
)

Creates a new RadialGauge.

C#
public virtual RadialGaugeBuilder RadialGaugeFor<TValue>(Expression<Func<TModel, TValue?>> expression) where TValue : struct, IComparable
Parameters:expressionExpression<Func<TModel, TValue?>>

An expression that identifies the model field to bind to.

Returns:

RadialGaugeBuilder

A RadialGaugeBuilder instance that can be used to configure the RadialGauge.

Example:
C#
@( Html.Kendo().RadialGaugeFor(m=&gt;m.Property) )

Creates a new RadialGauge.

C#
public virtual RadialGaugeBuilder RadialGaugeFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model field to bind to.

Returns:

RadialGaugeBuilder

A RadialGaugeBuilder instance that can be used to configure the RadialGauge.

Example:
C#
@( Html.Kendo().RadialGaugeFor(m=&gt;m.Property) )

Creates a new RadioButton.

C#
public virtual RadioButtonBuilder RadioButton()
Returns:

RadioButtonBuilder

A RadioButtonBuilder instance that can be used to configure the RadioButton.

Example:
C#
@(Html.Kendo().RadioButton()
.Name("RadioButton")
);

Creates a new RadioButton.

C#
public virtual RadioButtonBuilder RadioButtonFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>

An expression that identifies the model property to bind to the RadioButton.

Returns:

RadioButtonBuilder

A RadioButtonBuilder instance that can be used to configure the RadioButton.

Example:
C#
@(Html.Kendo().RadioButtonFor(m =&gt; m.Property));

Creates a new RadioGroup.

C#
public virtual RadioGroupBuilder RadioGroup()
Returns:

RadioGroupBuilder

A RadioGroupBuilder instance that can be used to configure the RadioGroup.

Example:
C#
@( Html.Kendo().RadioGroup()
.Name("RadioGroup")
)

Creates a new RadioGroup.

C#
public virtual RadioGroupBuilder RadioGroupFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model property to bind to the RadioGroup.

Returns:

RadioGroupBuilder

A RadioGroupBuilder instance that can be used to configure the RadioGroup.

Example:
C#
@( Html.Kendo().RadioGroupFor(m =&gt;m.Property) )

Creates a new RangeSlider<T>.

C#
public virtual RangeSliderBuilder<double> RangeSlider()
Returns:

RangeSliderBuilder<double>

A RangeSliderBuilder<T> instance that can be used to configure the RangeSlider.

Example:
C#
@( Html.Kendo().RangeSlider()
.Name("RangeSlider")
)

Creates a new RangeSlider<T>.

C#
public virtual RangeSliderBuilder<T> RangeSlider<T>() where T : struct, IComparable
Returns:

RangeSliderBuilder<T>

A RangeSliderBuilder<T> instance that can be used to configure the RangeSlider.

Example:
C#
@( Html.Kendo().RangeSlider()
.Name("RangeSlider")
)

Creates a new RangeSlider<T>.

C#
public virtual RangeSliderBuilder<double> RangeSliderFor(Expression<Func<TModel, double[]>> expression)
Parameters:expressionExpression<Func<TModel, double[]>>

An expression that identifies the model property to bind to the RangeSlider.

Returns:

RangeSliderBuilder<double>

A RangeSliderBuilder<T> instance that can be used to configure the RangeSlider.

Example:
C#
@( Html.Kendo().RangeSlider()
.Name("RangeSlider")
)

Creates a new RangeSlider<T>.

C#
public virtual RangeSliderBuilder<TValue> RangeSliderFor<TValue>(Expression<Func<TModel, TValue[]>> expression) where TValue : struct, IComparable
Parameters:expressionExpression<Func<TModel, TValue[]>>

An expression that identifies the model property to bind to the RangeSlider.

Returns:

RangeSliderBuilder<TValue>

A RangeSliderBuilder<T> instance that can be used to configure the RangeSlider.

Example:
C#
@( Html.Kendo().RangeSlider()
.Name("RangeSlider")
)

Creates a new Rating.

C#
public virtual RatingBuilder Rating()
Returns:

RatingBuilder

A RatingBuilder instance that can be used to configure the Rating.

Example:
C#
@( Html.Kendo().Rating()
.Name("Rating")
)

Creates a new Rating.

C#
public virtual RatingBuilder RatingFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

RatingBuilder

A RatingBuilder instance that can be used to configure the Rating.

Example:
C#
@( Html.Kendo().RatingFor(m=&gt;m.Property) )

Creates a new Reasoning.

C#
public virtual ReasoningBuilder Reasoning()
Returns:

ReasoningBuilder

Returns a new instance of ReasoningBuilder for configuring the component.

Example:
C#
@(Html.Kendo().Reasoning()
.Name("Reasoning")
)

Creates a new RecurrenceEditor.

C#
public virtual RecurrenceEditorBuilder RecurrenceEditor()
Returns:

RecurrenceEditorBuilder

A RecurrenceEditorBuilder instance that can be used to configure the RecurrenceEditor.

Example:
C#
@( Html.Kendo().RecurrenceEditor()
.Name("recurrenceEditor")
.FirstWeekDay(0)
.Timezone("Etc/UTC")
)

Creates a new RecurrenceEditor.

C#
public virtual RecurrenceEditorBuilder RecurrenceEditorFor<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>Returns:

RecurrenceEditorBuilder

A RecurrenceEditorBuilder instance that can be used to configure the RecurrenceEditor.

Example:
C#
@( Html.Kendo().RecurrenceEditorFor(m=&gt;m.Property) )

Creates a new ResponsivePanel.

C#
public virtual ResponsivePanelBuilder ResponsivePanel()
Returns:

ResponsivePanelBuilder

A ResponsivePanelBuilder instance that can be used to configure the ResponsivePanel.

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("ResponsivePanel")
)

Creates a new Sankey.

C#
public virtual SankeyBuilder Sankey()
Returns:

SankeyBuilder

A SankeyBuilder instance that can be used to configure the Sankey.

Example:
C#
@(Html.Kendo().Sankey()
.Name("Sankey")
)

Creates a new Scheduler<T>.

C#
public virtual SchedulerBuilder<T> Scheduler<T>() where T : class, ISchedulerEvent
Returns:

SchedulerBuilder<T>

A SchedulerBuilder<T> instance that can be used to configure the Scheduler.

Example:
C#
@( Html.Kendo().Scheduler&lt;SchedulerEvent&gt;()
.Name("Scheduler")
)

Creates a new ScrollView.

C#
public virtual ScrollViewBuilder ScrollView()
Returns:

ScrollViewBuilder

A ScrollViewBuilder instance that can be used to configure the ScrollView.

Example:
C#
@( Html.Kendo().ScrollView()
.Name("ScrollView")
.Items(items =&gt;
{
items.Add().Content("First");
items.Add().Content("Second");
})
)

Creates a new SegmentedControl.

C#
public virtual SegmentedControlBuilder SegmentedControl()
Returns:

SegmentedControlBuilder

Returns a new instance of SegmentedControlBuilder for configuring the component.

Example:
C#
@(Html.Kendo().SegmentedControl()
.Name("segmentedControl")
)

Creates a new Signature.

C#
public virtual SignatureBuilder Signature()
Returns:

SignatureBuilder

A SignatureBuilder instance that can be used to configure the Signature.

Example:
C#
@(Html.Kendo().Signature()
.Name("Signature")
)

Creates a new SkeletonContainer.

C#
public virtual SkeletonContainerBuilder SkeletonContainer()
Returns:

SkeletonContainerBuilder

A SkeletonContainerBuilder instance that can be used to configure the SkeletonContainer.

Example:
C#
@(Html.Kendo().SkeletonContainer()
.Name("SkeletonContainer")
)

Creates a new Slider<T>.

C#
public virtual SliderBuilder<double> Slider()
Returns:

SliderBuilder<double>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().Slider&lt;double&gt;()
.Name("Slider")
)

Creates a new Slider<T>.

C#
public virtual SliderBuilder<T> Slider<T>() where T : struct, IComparable
Returns:

SliderBuilder<T>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().Slider&lt;double&gt;()
.Name("Slider")
)

Creates a new Slider<T> for the specified model property.

C#
public virtual SliderBuilder<double> SliderFor(Expression<Func<TModel, double?>> expression)
Parameters:expressionExpression<Func<TModel, double?>>

An expression that identifies the model property to bind to the Slider.

Returns:

SliderBuilder<double>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().SliderFor(m =&gt; m.Property))

Creates a new Slider<T> for the specified model property.

C#
public virtual SliderBuilder<double> SliderFor(Expression<Func<TModel, double>> expression)
Parameters:expressionExpression<Func<TModel, double>>

An expression that identifies the model property to bind to the Slider.

Returns:

SliderBuilder<double>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().SliderFor(m =&gt; m.Property))

Creates a new Slider<T> for the specified model property.

C#
public virtual SliderBuilder<TValue> SliderFor<TValue>(Expression<Func<TModel, TValue?>> expression) where TValue : struct, IComparable
Parameters:expressionExpression<Func<TModel, TValue?>>

An expression that identifies the model property to bind to the Slider.

Returns:

SliderBuilder<TValue>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().SliderFor(m =&gt; m.Property))

Creates a new Slider<T> for the specified model property.

C#
public virtual SliderBuilder<TValue> SliderFor<TValue>(Expression<Func<TModel, TValue>> expression) where TValue : struct, IComparable
Parameters:expressionExpression<Func<TModel, TValue>>

An expression that identifies the model property to bind to the Slider.

Returns:

SliderBuilder<TValue>

A SliderBuilder<T> instance that can be used to configure the Slider.

Example:
C#
@(Html.Kendo().SliderFor(m =&gt; m.Property))

Creates a new SmartPasteButton.

C#
public virtual SmartPasteButtonBuilder SmartPasteButton()
Returns:

SmartPasteButtonBuilder

Returns a new instance of SmartPasteButtonBuilder for configuring the component.

Example:
C#
@( Html.Kendo().SmartPasteButton()
.Name("smartPaste")
)

Creates a new Sortable.

C#
public virtual SortableBuilder Sortable()
Returns:

SortableBuilder

A SortableBuilder instance that can be used to configure the Sortable.

Example:
C#
@( Html.Kendo().Sortable()
.Name("Sortable")
)

Creates a new unbound Sparkline().

C#
public virtual SparklineBuilder<object> Sparkline()
Returns:

SparklineBuilder<object>

A SparklineBuilder<T> instance that can be used to configure the Sparkline.

Example:
C#
@( Html.Kendo().Sparkline()
.Name("Sparkline")
.Series(series =&gt; {
series.Bar(new int[] { 1, 2, 3 }).Name("Total Sales");
})
)

Creates a Sparkline<T>

C#
public virtual SparklineBuilder<T> Sparkline<T>() where T : class
Returns:

SparklineBuilder<T>

A SparklineBuilder<T> instance that can be used to configure the Sparkline.

Example:
C#
@( Html.Kendo().Sparkline()
.Name("Sparkline")
)

Creates a new Sparkline<T> bound to the specified data source.

C#
public virtual SparklineBuilder<T> Sparkline<T>(IEnumerable<T> data) where T : class
Parameters:dataIEnumerable<T>

The data source.

Returns:

SparklineBuilder<T>

A SparklineBuilder<T> instance that can be used to configure the Sparkline.

Example:
C#
@( Html.Kendo().Sparkline(Model)
.Name("Sparkline")
)

Creates a new Sparkline<T> bound an item in ViewData.

C#
public virtual SparklineBuilder<T> Sparkline<T>(string dataSourceViewDataKey) where T : class
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

SparklineBuilder<T>

A SparklineBuilder<T> instance that can be used to configure the Sparkline.

Example:
C#
@( Html.Kendo().Sparkline&lt;SalesData&gt;("sales")
.Name("Sparkline")
)

Creates a new SpeechToTextButton.

C#
public virtual SpeechToTextButtonBuilder SpeechToTextButton()
Returns:

SpeechToTextButtonBuilder

Returns a new instance of SpeechToTextButtonBuilder for configuring the component.

Example:
C#
@( Html.Kendo().SpeechToText()
.Name("speechToText")
)

Creates a new SplitButton.

C#
public virtual SplitButtonBuilder SplitButton()
Returns:

SplitButtonBuilder

A SplitButtonBuilder instance that can be used to configure the SplitButton.

Example:
C#
@( Html.Kendo().SplitButton()
.Name("SplitButton")
)

Creates a new Window.

C#
public virtual SplitterBuilder Splitter()
Returns:

SplitterBuilder

A SplitterBuilder instance that can be used to configure the Splitter.

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
)

Creates a Spreadsheet()

C#
public virtual SpreadsheetBuilder Spreadsheet()
Returns:

SpreadsheetBuilder

A SpreadsheetBuilder instance that can be used to configure the Spreadsheet.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("Spreadsheet")
)

Creates a new StackLayout.

C#
public virtual StackLayoutBuilder StackLayout()
Returns:

StackLayoutBuilder

A StackLayoutBuilder instance that can be used to configure the StackLayout.

Example:
C#
@( Html.Kendo().StackLayout()
.Name("StackLayout")
)

Creates a new Stepper.

C#
public virtual StepperBuilder Stepper()
Returns:

StepperBuilder

A StepperBuilder instance that can be used to configure the Stepper.

Example:
C#
@( Html.Kendo().Stepper()
.Steps(steps =&gt;
{
steps.Add().Label("First Item");
steps.Add().Label("Second Item");
})
)

Creates a new unbound StockChart().

C#
public virtual StockChartBuilder<object> StockChart()
Returns:

StockChartBuilder<object>

A StockChartBuilder<T> instance that can be used to configure the StockChart.

Example:
C#
@( Html.Kendo().StockChart()
.Name("StockChart")
.Series(series =&gt; {
series.Bar(new int[] { 1, 2, 3 }).Name("Total Sales");
})
)

Creates a StockChart<T>

C#
public virtual StockChartBuilder<T> StockChart<T>() where T : class
Returns:

StockChartBuilder<T>

A StockChartBuilder<T> instance that can be used to configure the StockChart.

Example:
C#
@(Html.Kendo().StockChart()
.Name("StockChart")
);

Creates a new StockChart<T> bound to the specified data source.

C#
public virtual StockChartBuilder<T> StockChart<T>(IEnumerable<T> data) where T : class
Parameters:dataIEnumerable<T>

The data source.

Returns:

StockChartBuilder<T>

A StockChartBuilder<T> instance that can be used to configure the StockChart.

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("StockChart")
)

Creates a new Chart<T> bound an item in ViewData.

C#
public virtual ChartBuilder<T> StockChart<T>(string dataSourceViewDataKey) where T : class
Parameters:dataSourceViewDataKeystring

The data source view data key.

Returns:

ChartBuilder<T>

A StockChartBuilder<T> instance that can be used to configure the StockChart.

Example:
C#
@(Html.Kendo().Chart&lt;SalesData&gt;("sales")
.Name("Chart")
)

Creates a new Switch.

C#
public virtual SwitchBuilder Switch()
Returns:

SwitchBuilder

A SwitchBuilder instance that can be used to configure the Switch.

Example:
C#
@( Html.Kendo().Switch()
.Name("Switch")
)

Creates a new Switch.

C#
public virtual SwitchBuilder SwitchFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

SwitchBuilder

A SwitchBuilder instance that can be used to configure the Switch.

Example:
C#
@( Html.Kendo().SwitchFor(m=&gt;m.Property) )

Creates a new TabStrip.

C#
public virtual TabStripBuilder TabStrip()
Returns:

TabStripBuilder

A TabStripBuilder instance that can be used to configure the TabStrip.

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =&gt;
{
items.Add().Text("First");
items.Add().Text("Second");
})
)

Creates a new TaskBoard<TCard, TColumn>.

C#
public virtual TaskBoardBuilder<object, object> TaskBoard()
Returns:

TaskBoardBuilder<object, object>

A TaskBoardBuilder<TCard, TColumn> instance that can be used to configure the TaskBoard.

Example:
C#
@( Html.Kendo().TaskBoard()
)

Creates a new TaskBoard<TCard, TColumn>.

C#
public virtual TaskBoardBuilder<TCard, TColumn> TaskBoard<TCard, TColumn>() where TCard : class where TColumn : class
Returns:

TaskBoardBuilder<TCard, TColumn>

A TaskBoardBuilder<TCard, TColumn> instance that can be used to configure the TaskBoard.

Example:
C#
@( Html.Kendo().TaskBoard()
)

Creates a new TaskBoard<TCard, TColumn>.

C#
public virtual TaskBoardBuilder<TCard, object> TaskBoard<TCard>() where TCard : class
Returns:

TaskBoardBuilder<TCard, object>

A TaskBoardBuilder<TCard, TColumn> instance that can be used to configure the TaskBoard.

Example:
C#
@( Html.Kendo().TaskBoard()
)

Creates a new Template<TModel> component. The Template component allows you to incorporate multiple helper components into the templating options of other components, creating templates that are CSP-compatible.

C#
public virtual TemplateBuilder<TModel> Template()
Returns:

TemplateBuilder<TModel>

A TemplateBuilder<TModel> instance that can be used to configure the Template.

Example:
C#
.ClientTemplate(Html.Kendo().Template()
.AddHtml("&lt;div class='details'&gt;")
.AddComponent(btn =&gt; btn
.Button()
.Name("details")
.Content("Details")
.ThemeColor(ThemeColor.Primary)
)
.AddHtml("&lt;/div")
);

Creates a new TextArea.

C#
public virtual TextAreaBuilder TextArea()
Returns:

TextAreaBuilder

A TextAreaBuilder instance that can be used to configure the TextArea.

Example:
C#
@( Html.Kendo().TextArea()
.Name("textarea")
)

Creates a new TextArea.

C#
public virtual TextAreaBuilder TextAreaFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

TextAreaBuilder

A TextAreaBuilder instance that can be used to configure the TextArea.

Example:
C#
@( Html.Kendo().TextAreaFor(m =&gt;m.Property) )

Creates a new TextBox<T>.

C#
public virtual TextBoxBuilder<string> TextBox()
Returns:

TextBoxBuilder<string>

A TextBoxBuilder<T> instance that can be used to configure the TextBox.

Example:
C#
@( Html.Kendo().TextBox()
.Name("TextBox")
)

Creates a new TextBox<T>.

C#
public virtual TextBoxBuilder<T> TextBox<T>()
Returns:

TextBoxBuilder<T>

A TextBoxBuilder<T> instance that can be used to configure the TextBox.

Example:
C#
@( Html.Kendo().TextBox&lt;double&gt;()
.Name("TextBox")
)

Creates a new TextBox<T>.

C#
public virtual TextBoxBuilder<TProperty> TextBoxFor<TProperty>(Expression<Func<TModel, TProperty>> expression)
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

TextBoxBuilder<TProperty>

A TextBoxBuilder<T> instance that can be used to configure the TextBox.

Example:
C#
@( Html.Kendo().TextBoxFor(m =&gt;m.Property) )

Creates a new TileLayout.

C#
public virtual TileLayoutBuilder TileLayout()
Returns:

TileLayoutBuilder

A TileLayoutBuilder instance that can be used to configure the TileLayout.

Example:
C#
@( Html.Kendo().TileLayout()
.Name("TileLayout")
)

Creates a new TimeDurationPicker.

C#
public virtual TimeDurationPickerBuilder TimeDurationPicker()
Returns:

TimeDurationPickerBuilder

A TimeDurationPickerBuilder instance that can be used to configure the TimeDurationPicker.

Example:
C#
@(Html.Kendo().TimeDurationPicker()
.Name("TimeDurationPicker")
)

Creates a new TimeDurationPicker.

C#
public virtual TimeDurationPickerBuilder TimeDurationPickerFor<TProperty>(Expression<Func<TModel, TProperty?>> expression) where TProperty : struct
Parameters:expressionExpression<Func<TModel, TProperty?>>Returns:

TimeDurationPickerBuilder

Example:
C#
@(Html.Kendo().TimeDurationPickerFor(x=&gt; x.Property)

)

Creates a new TimeDurationPicker.

C#
public virtual TimeDurationPickerBuilder TimeDurationPickerFor<TProperty>(Expression<Func<TModel, TProperty>> expression) where TProperty : struct
Parameters:expressionExpression<Func<TModel, TProperty>>Returns:

TimeDurationPickerBuilder

A TimeDurationPickerBuilder instance that can be used to configure the TimeDurationPicker.

Example:
C#
@(Html.Kendo().TimeDurationPickerFor(x=&gt; x.Property)

)

Creates a new ListView<T> bound to the specified data item type.

C#
public virtual TimelineBuilder<T> Timeline<T>() where T : class
Returns:

TimelineBuilder<T>

A ListViewBuilder<T> instance that can be used to configure the ListView.

Example:
C#
@(Html.Kendo().ListView&lt;Order&gt;()
.Name("ListView")
.BindTo(Model)
)

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePicker()
Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePicker()
.Name("TimePicker")
)

Creates a new TimePicker bound to nullable model field

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, DateTime?>> expression)
Parameters:expressionExpression<Func<TModel, DateTime?>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@(Html.Kendo().TimePickerFor(m =&gt; m.Property))

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, DateTime>> expression)
Parameters:expressionExpression<Func<TModel, DateTime>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePickerFor(m=&gt;m.Property) )

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, TimeOnly?>> expression)
Parameters:expressionExpression<Func<TModel, TimeOnly?>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePickerFor(m=&gt;m.Property) )

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, TimeOnly>> expression)
Parameters:expressionExpression<Func<TModel, TimeOnly>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePickerFor(m=&gt;m.Property) )

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, TimeSpan?>> expression)
Parameters:expressionExpression<Func<TModel, TimeSpan?>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePickerFor(m=&gt;m.Property) )

Creates a new TimePicker.

C#
public virtual TimePickerBuilder TimePickerFor(Expression<Func<TModel, TimeSpan>> expression)
Parameters:expressionExpression<Func<TModel, TimeSpan>>

An expression that identifies the model property to bind to the TimePicker.

Returns:

TimePickerBuilder

A TimePickerBuilder instance that can be used to configure the TimePicker.

Example:
C#
@( Html.Kendo().TimePickerFor(m=&gt;m.Property) )

Creates a new ToggleButton.

C#
public virtual ToggleButtonBuilder ToggleButton()
Returns:

ToggleButtonBuilder

A ToggleButtonBuilder instance that can be used to configure the ToggleButton.

Example:
C#
@( Html.Kendo().ToggleButton()
.Name("toggleButton")
)

Creates a ToolBar()

C#
public virtual ToolBarBuilder ToolBar()
Returns:

ToolBarBuilder

A ToolBarBuilder instance that can be used to configure the ToolBar.

Example:
C#
@( Html.Kendo().ToolBar()
.Name("ToolBar")
)

Creates a new ToolCall.

C#
public virtual ToolCallBuilder ToolCall()
Returns:

ToolCallBuilder

Returns a new instance of ToolCallBuilder for configuring the component.

Example:
C#
@(Html.Kendo().ToolCall()
.Name("ToolCall")
)

Creates a new Tooltip.

C#
public virtual TooltipBuilder Tooltip()
Returns:

TooltipBuilder

A TooltipBuilder instance that can be used to configure the Tooltip.

Example:
C#
@( Html.Kendo().Tooltip()
.For("Container")
)

Creates a TreeList<T>()

C#
public virtual TreeListBuilder<T> TreeList<T>() where T : class
Returns:

TreeListBuilder<T>

A TreeListBuilder<T> instance that can be used to configure the TreeList.

Example:
C#
@(Html.Kendo().TreeList()
.Name("TreeList")
)

Creates a new TreeMap.

C#
public virtual TreeMapBuilder TreeMap()
Returns:

TreeMapBuilder

A TreeMapBuilder instance that can be used to configure the TreeMap.

Example:
C#
@( Html.Kendo().TreeMap()
.Name("TreeMap")
)

Creates a TreeView()

C#
public virtual TreeViewBuilder TreeView()
Returns:

TreeViewBuilder

A TreeViewBuilder instance that can be used to configure the TreeView.

Example:
C#
@(Html.Kendo().TreeView()
.Name("TreeView")
)

Creates a new Upload.

C#
public virtual UploadBuilder Upload()
Returns:

UploadBuilder

A UploadBuilder instance that can be used to configure the Upload.

Example:
C#
@( Html.Kendo().Upload()
.Name("Upload")
)

Creates a new Window.

C#
public virtual WindowBuilder Window()
Returns:

WindowBuilder

A WindowBuilder instance that can be used to configure the Window.

Example:
C#
@( Html.Kendo().Window()
.Name("Window")
)

Creates a new Stepper.

C#
public virtual WizardBuilder Wizard()
Returns:

WizardBuilder

A WizardBuilder instance that can be used to configure the Wizard.

Example:
C#
@( Html.Kendo().Wizard()
.Steps(steps =&gt;
{
steps.Add().Title("First Item");
steps.Add().Title("Second Item");
})
)

Events

WidgetCreated member.

C#
public event WidgetFactory<TModel>.WidgetCreatedDelegate WidgetCreated