Defines the fluent API for configuring the Kendo PropertyGrid for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class PropertyGridBuilder<T> : WidgetBuilderBase<PropertyGrid<T>, PropertyGridBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<PropertyGrid<T>, PropertyGridBuilder<T>>PropertyGridBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the PropertyGrid class.
public PropertyGridBuilder(PropertyGrid<T> component)
The component.
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 action that configures the columns.
Returns:Configures the ContextMenu of the PropertyGrid. If set to true enables the default ContextMenu.
Configures the ContextMenu of the PropertyGrid. If set to true enables the default ContextMenu.
public PropertyGridBuilder<T> ContextMenu(Action<PropertyGridContextMenuSettingsBuilder<T>> configurator)
The action that configures the contextmenu.
Returns: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: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 that configures the editmode.
Returns:Configures the client-side events.
public PropertyGridBuilder<T> Events(Action<PropertyGridEventBuilder> configurator)
The client events action.
Returns:Configures the Excel export settings of the PropertyGrid.
public PropertyGridBuilder<T> Excel(Action<PropertyGridExcelSettingsBuilder<T>> configurator)
The action that configures the excel.
Returns:Enables the grouping of properties. Set this configuration to false to disable grouping.
public PropertyGridBuilder<T> Groupable(bool value)
The value that configures the groupable.
Returns:Sets the height of the PropertyGrid. Numeric values are treated as pixels.
public PropertyGridBuilder<T> Height(double value)
The value that configures the height.
Returns:Additional configuration options for the properties of the model.
public PropertyGridBuilder<T> Items(Action<PropertyGridItemFactory<T>> configurator)
The action that configures the items.
Returns: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 action that configures the messages.
Returns: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(bool value)
The value that configures the navigatable.
Returns:Configures the PDF export settings of the PropertyGrid.
public PropertyGridBuilder<T> Pdf(Action<PropertyGridPdfSettingsBuilder<T>> configurator)
The action that configures the pdf.
Returns: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 that configures the resizable.
Returns: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 that configures the scrollable.
Returns: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 that configures the showdetails.
Returns: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.; 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. or If an Object value is assigned, it will propagate these properties to the underlying Toolbar:items - an array of commands as explained aboveoverflow - an object that configures the overflow behavior of the toolbar. The same as Toolbar.overflow property.
public PropertyGridBuilder<T> Toolbar(Action<PropertyGridToolbarFactory<T>> configurator)
The action that configures the toolbar.
Returns: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.; 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. or If an Object value is assigned, it will propagate these properties to the underlying Toolbar:items - an array of commands as explained aboveoverflow - an object that configures the overflow behavior of the toolbar. The same as Toolbar.overflow property.
public PropertyGridBuilder<T> Toolbar(Action<PropertyGridToolbarSettingsBuilder<T>> configurator)
The action that configures the toolbar.
Returns:Sets the width of the PropertyGrid. Numeric values are treated as pixels.
public PropertyGridBuilder<T> Width(double value)
The value that configures the width.
Returns: