Defines the fluent API for configuring the Kendo UI PropertyGrid
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class PropertyGridBuilder<T> : WidgetBuilderBase<PropertyGrid<T>, PropertyGridBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<PropertyGrid<T>, PropertyGridBuilder<T>>PropertyGridBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the PropertyGridBuilder<T> class.
Methods
The configuration of the PropertyGrid columns which allows for setting the field and value column configuration options.
public PropertyGridBuilder<T> Columns(Action<PropertyGridColumnsSettingsBuilder<T>> configurator)
The PropertyGridColumnsSettingsBuilder<T> for the columns setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
Configures the ContextMenu of the PropertyGrid. If set to true enables the default ContextMenu.
public PropertyGridBuilder<T> ContextMenu()
Returns the current instance of PropertyGridContextMenuSettingsBuilder<T> .
Configures the ContextMenu of the PropertyGrid. If set to true enables the default ContextMenu.
public PropertyGridBuilder<T> ContextMenu(Action<PropertyGridContextMenuSettingsBuilder<T>> configurator)
The PropertyGridContextMenuSettingsBuilder<T> for the contextmenu setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
Configures the ContextMenu of the PropertyGrid. If set to true enables the default ContextMenu.
public PropertyGridBuilder<T> ContextMenu(bool enabled)
Enables or disables the contextmenu option.
Returns:Returns the current instance of PropertyGridContextMenuSettingsBuilder<T> .
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 PropertyGridBuilder<T> EditMode(bool value)
The value for EditMode
Returns:Returns the current PropertyGridBuilder<T> instance.
Configures the client-side events.
public PropertyGridBuilder<T> Events(Action<PropertyGridEventBuilder> configurator)
The client events action.
Returns:Returns the current PropertyGridBuilder<T> instance.
Configures the Excel export settings of the PropertyGrid.
public PropertyGridBuilder<T> Excel(Action<PropertyGridExcelSettingsBuilder<T>> configurator)
The PropertyGridExcelSettingsBuilder<T> for the excel setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
Enables the grouping of properties. Set this configuration to false to disable grouping.
public PropertyGridBuilder<T> Groupable(bool value)
The value for Groupable
Returns:Returns the current PropertyGridBuilder<T> instance.
Sets the height of the PropertyGrid. Numeric values are treated as pixels.
public PropertyGridBuilder<T> Height(double value)
The value for Height
Returns:Returns the current PropertyGridBuilder<T> instance.
Additional configuration options for the properties of the model.
public PropertyGridBuilder<T> Items(Action<PropertyGridItemFactory<T>> configurator)
The PropertyGridItemFactory<T> for the items setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
Defines the text of the command buttons that are shown within the PropertyGrid. Used primarily for localization.
public PropertyGridBuilder<T> Messages(Action<PropertyGridMessagesSettingsBuilder<T>> configurator)
The PropertyGridMessagesSettingsBuilder<T> for the messages setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
Sets the object to which the PropertyGrid is bound.
If set to true, the user can navigate the component with the keyboard. By default, keyboard navigation is disabled.
public PropertyGridBuilder<T> Navigatable()
Returns the current PropertyGridBuilder<T> instance.
If set to true, the user can navigate the component with the keyboard. By default, keyboard navigation is disabled.
public PropertyGridBuilder<T> Navigatable(bool value)
The value for Navigatable
Returns:Returns the current PropertyGridBuilder<T> instance.
Configures the PDF export settings of the PropertyGrid.
public PropertyGridBuilder<T> Pdf(Action<PropertyGridPdfSettingsBuilder<T>> configurator)
The PropertyGridPdfSettingsBuilder<T> for the pdf setting.
Returns:Returns the current instance of PropertyGridBuilder<T> .
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 PropertyGridBuilder<T> Resizable(bool value)
The value for Resizable
Returns:Returns the current PropertyGridBuilder<T> instance.
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 PropertyGridBuilder<T> Scrollable(bool value)
The value for Scrollable
Returns:Returns the current PropertyGridBuilder<T> instance.
Use this configuration to disable the ToggleDetails command button on the toolbar and to prevent the rendering of the Details/Info box.
public PropertyGridBuilder<T> ShowDetails(bool value)
The value for ShowDetails
Returns:Returns the current PropertyGridBuilder<T> instance.
If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole PropertyGrid toolbar and the string value will be passed as an argument to a kendo.template() function.; If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the contents of the PropertyGrid toolbar. or If an Array value is assigned, it will be treated as the list of commands which are displayed in the PropertyGrid toolbar. Commands can be custom or built-in. The supported built-in commands are:search—Adds a Search input to the ToolBar of the PropertyGrid. Search is performed by property name.sort—Adds a DropDownList with sorting options. Properties are sorted by property name.group—Renders a button for toggling between List and Group layout.details—Renders a button for toggling the Details/Info box.separator—Renders a separator element.spacer—Renders a spacer element.excel—Exports the data in MS Excel format.pdf—Exports the data in PDF format..
public PropertyGridBuilder<T> Toolbar(Action<PropertyGridToolbarFactory<T>> configurator)
The configurator for the toolbar setting.
Returns:Returns the current PropertyGridBuilder<T> instance.
Configures the toolbar of the PropertyGrid.
public PropertyGridBuilder<T> Toolbar(Action<PropertyGridToolbarSettingsBuilder<T>> configurator)
The configurator for the toolbar setting.
Returns:Returns the current PropertyGridBuilder<T> instance.
Sets the width of the PropertyGrid. Numeric values are treated as pixels.
public PropertyGridBuilder<T> Width(double value)
The value for Width
Returns:Returns the current PropertyGridBuilder<T> instance.