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

Kendo UI PropertyGridItem TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: IEditorContainerITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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>

Constructors

PropertyGridItemTagHelper method.

C#
public PropertyGridItemTagHelper()

Properties

Sets the description for the property.

C#
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.

C#
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.

C#
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

C#
public string Editor { get; set; }

Implements: IEditorContainer.Editor

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

C#
public string EditorHandler { get; set; }

The configuration options of the buile-in editor for the current PropertyGridItem.

C#
[HtmlAttributeNotBound]
public IDictionary<string, object> EditorOptions { get; set; }

Implements: IEditorContainer.EditorOptions

Maps the item configuration to the model property.

C#
public string Field { get; set; }

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".

C#
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.

C#
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.

C#
public string Group { get; set; }

The template which is rendered for the property's value.

C#
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.

C#
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.

C#
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.

C#
public IHtmlContent TemplateView { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

Dictionary<string, object>