Kendo UI PropertyGridItem TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("property-grid-item", ParentTag = "property-grid-items", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("property-grid-items", new string[] { "dropdownlist-editor", "autocomplete-editor", "combobox-editor", "multiselect-editor", "multicolumncombobox-editor", "dropdowntree-editor", "dateinput-editor", "datepicker-editor", "datetimepicker-editor", "timepicker-editor", "numerictextbox-editor", "maskedtextbox-editor", "switch-editor", "rating-editor", "slider-editor", "colorpicker-editor", "flatcolorpicker-editor", "colorgradient-editor", "colorpalette-editor", "richtexteditor-editor", "radiogroup-editor", "checkboxgroup-editor", "textbox-editor", "textarea-editor", "captcha-editor", "grid", "signature-editor", "timedurationpicker-editor" })]
[SuppressTagRendering]
public class PropertyGridItemTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, IEditorContainer
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBasePropertyGridItemTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-propertygrid name="propertygrid">
<property-grid-items>
<property-grid-item field="PropertyName" description="This is a description for the property." />
</property-grid-items>
</kendo-propertygrid>
Child Tags
Constructors
PropertyGridItemTagHelper method.
public PropertyGridItemTagHelper()
Properties
Sets the description for the property.
public string Description { get; set; }
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 bool? Editable { get; set; }
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 string EditableHandler { get; set; }
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 string Editor { get; set; }
Implements:
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 string EditorHandler { get; set; }
The configuration options of the buile-in editor for the current PropertyGridItem.
[HtmlAttributeNotBound]
public IDictionary<string, object> EditorOptions { get; set; }
Implements:
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 string FieldType { get; set; }
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 string Format { get; set; }
Sets the name of the group to which the property will belong, if grouping is enabled. Only root level items can be grouped.
public string Group { get; set; }
The template which is rendered for the property's value.
public string Template { get; set; }
The template which is rendered for the property's value. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which is rendered for the property's value. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
The template which is rendered for the property's value. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.