Defines the fluent API for configuring PropertyGridItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class PropertyGridItemBuilder<T> where T : class
Inheritance: objectPropertyGridItemBuilder<T>
Inherited Members
Constructors
PropertyGridItemBuilder method.
public PropertyGridItemBuilder(PropertyGridItem<T> container)
Properties
Gets or sets the Container.
protected PropertyGridItem<T> Container { get; }
Methods
Sets the description for the property.
public PropertyGridItemBuilder<T> Description(string value)
The value for Description
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.
public PropertyGridItemBuilder<T> Editable(bool value)
The value for Editable
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.
public PropertyGridItemBuilder<T> EditableHandler(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.
public PropertyGridItemBuilder<T> EditableHandler(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Maps to the model field which will be configured and sets the name of the input.
public PropertyGridItemBuilder<T> Editor(Action<PropertyGridItemEditorBuilder<T>> configurator)
The expression that specifies the field, based on the bound model.
Returns:The current instance of the PropertyGridItemBuilder<T>.
Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field
public PropertyGridItemBuilder<T> Editor(string value)
The value for Editor
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field
public PropertyGridItemBuilder<T> EditorHandler(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field
public PropertyGridItemBuilder<T> EditorHandler(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Maps the item configuration to the model property.
public PropertyGridItemBuilder<T> Field(string value)
The value for Field
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Maps to the model field which will be configured and sets the name of the input.
public PropertyGridItemBuilder<T> Field<TValue>(Expression<Func<T, TValue>> expression)
The expression that specifies the field, based on the bound model.
Returns:The current instance of the PropertyGridItemBuilder<T>.
Specifies the JavaScript type of the field value. Used to determine the correct default editor when the model value is null. Accepted values are "string", "number", "boolean", and "date".
public PropertyGridItemBuilder<T> FieldType(string value)
The value for FieldType
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The format that is applied to the value before it is displayed. Takes the {0:format} form where format is a standard number format, custom number format, standard date format or a custom date format.
public PropertyGridItemBuilder<T> Format(string value)
The value for Format
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Sets the name of the group to which the property will belong, if grouping is enabled. Only root level items can be grouped.
public PropertyGridItemBuilder<T> Group(string value)
The value for Group
Returns:Returns the current PropertyGridItemBuilder<T> instance.
Additional configuration options for the properties of the model.
public PropertyGridItemBuilder<T> Items(Action<PropertyGridItemFactory<T>> configurator)
The configurator for the items setting.
Returns:The current instance of the PropertyGridItemBuilder<T>.
The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> Template(string value)
The value for Template
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current PropertyGridItemBuilder<T> instance.
The template which is rendered for the property's value.
public PropertyGridItemBuilder<T> TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current PropertyGridItemBuilder<T> instance.