Kendo UI PropertyGrid TagHelper PropertyGridTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-propertygrid")]
[RestrictChildren("columns", new string[] { "context-menu", "excel", "property-grid-items", "messages", "pdf", "toolbar" })]
public class PropertyGridTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBasePropertyGridTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-propertygrid name="propertygrid">
<columns>
<field-column width="200" />
<value-column width="300" />
</columns>
</kendo-propertygrid>
Child Tags
Constructors
Initializes a new instance of the PropertyGridTagHelper class.
public PropertyGridTagHelper(IKendoHtmlGenerator generator)
Properties
If set to true, the user will be able to edit the values of the object's properties to which the PropertyGrid is bound. By default, editing is enabled. can also be set to a string (which specifies the edit mode).The supported string values are: (Default) incell.
public bool? EditMode { get; set; }
Enables the grouping of properties. Set this configuration to false to disable grouping.
public bool? Groupable { get; set; }
Sets the height of the PropertyGrid. Numeric values are treated as pixels.
public double? Height { get; set; }
If set to true, the user can navigate the component with the keyboard. By default, keyboard navigation is disabled.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the beforeEdit event. Fires when the user tries to edit a data item before the editor is created. Can be used for preventing the editing depending on custom logic. The event handler function context (available through the this keyword) will be set to the component instance. The event will be fired only when the PropertyGrid is editable.
public string OnBeforeEdit { get; set; }
The name of the JavaScript function that will handle the cancel event. Fires when the user closes the edit cell via the Esc key or when the Reset command from the ContextMenu is executed. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnCancel { get; set; }
The name of the JavaScript function that will handle the cellClose event. Fires when the incell edit mode is used and the cell will be closed. The event is triggered after saving or canceling the changes but before the cell is closed. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnCellClose { get; set; }
The name of the JavaScript function that will handle the change event. Fires when the user selects a table row in the PropertyGrid. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the collapse event. Fires when an item is about to be collapsed. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnCollapse { get; set; }
The name of the JavaScript function that will handle the columnHide event. Fires when the user hides a column. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnHide { get; set; }
The name of the JavaScript function that will handle the columnLock event. Fires when the user lock a column. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnLock { get; set; }
The name of the JavaScript function that will handle the columnMenuInit event. Fires when the column menu is initialized. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnMenuInit { get; set; }
The name of the JavaScript function that will handle the columnMenuOpen event. Fires when the column menu is opened. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnMenuOpen { get; set; }
The name of the JavaScript function that will handle the columnReorder event. Fires when the user changes the order of a column. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnReorder { get; set; }
The name of the JavaScript function that will handle the columnResize event. Fires when the user resizes a column via the Resize contextMenu command. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnColumnResize { get; set; }
The name of the JavaScript function that will handle the columnShow event. Fires when the user shows a column. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnShow { get; set; }
The name of the JavaScript function that will handle the columnUnlock event. Fires when the user unlock a column. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnColumnUnlock { get; set; }
The name of the JavaScript function that will handle the dataBinding event. Fires before the widget binds to its data source. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDataBinding { get; set; }
The name of the JavaScript function that will handle the dataBound event. Fires when the widget is bound to data from its data source. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDataBound { get; set; }
The name of the JavaScript function that will handle the drag event. (Available as of the 2015.3.1014 release) Fires while the user is dragging and item. This event is triggered on every mouse move. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDrag { get; set; }
The name of the JavaScript function that will handle the dragend event. (Available as of the 2015.3.1014 release) Fires when the user finishes dragging an item and the model was updated. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDragend { get; set; }
The name of the JavaScript function that will handle the dragstart event. (Available as of the 2015.3.1014 release) Fires when the user attempts to drag an item. If prevented, the item is not allowed to move. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDragstart { get; set; }
The name of the JavaScript function that will handle the drop event. (Available as of the 2015.3.1014 release) Fires when the user drops an item. If prevented, the source row will not be moved. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnDrop { get; set; }
The name of the JavaScript function that will handle the edit event. Fires when the user edits a data item. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnEdit { get; set; }
The name of the JavaScript function that will handle the excelExport event. Fires when the user clicks the Export to Excel toolbar button.
public string OnExcelExport { get; set; }
The name of the JavaScript function that will handle the expand event. Fires when an item is about to be expanded. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnExpand { get; set; }
The name of the JavaScript function that will handle the filterMenuInit event. Fires when the TreeList filter menu is initialized. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnFilterMenuInit { get; set; }
The name of the JavaScript function that will handle the filterMenuOpen event. Fires when the TreeList filter menu is opened. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnFilterMenuOpen { get; set; }
The name of the JavaScript function that will handle the groupCollapse event. Fires when a group of items is about to be collapsed. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnGroupCollapse { get; set; }
The name of the JavaScript function that will handle the groupExpand event. Fires when a group of items is about to be expanded. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnGroupExpand { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the PropertyGrid is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the pdfExport event. Fires when the user clicks the Export to PDF toolbar button.
public string OnPdfExport { get; set; }
The name of the JavaScript function that will handle the remove event. Fires when the user clicks the Destroy command button. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnRemove { get; set; }
The name of the JavaScript function that will handle the save event. Fires when a data item is saved. The event handler function context (available through the this keyword) will be set to the component instance.
public string OnSave { get; set; }
The name of the JavaScript function that will handle the saveChanges event. Fires when the user clicks the Save command button. The event handler function context (available through the this keyword) will be set to the widget instance.
public string OnSaveChanges { get; set; }
When set to true the user will be able to resize columns via the context menu. When set to false the ContextMenu Resize command will not be available.
public bool? Resizable { get; set; }
If set to true, the PropertyGrid will display a scrollbar when the total row height or width exceeds the PropertyGrid height or width. By default, scrolling is enabled.
public bool? Scrollable { get; set; }
Use this configuration to disable the ToggleDetails command button on the toolbar and to prevent the rendering of the Details/Info box.
public bool? ShowDetails { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: