Defines the fluent interface for configuring grid editing.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridEditingSettingsBuilder<T> where T : class
Inheritance: objectGridEditingSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridEditingSettingsBuilder<T> class.
public GridEditingSettingsBuilder(GridEditableSettings<T> settings)
The settings.
Methods
Provides additional view data in the editor template.
public GridEditingSettingsBuilder<T> AdditionalViewData(object additionalViewData)
An anonymous object which contains the additional data
Returns:The additional view data will be provided if the editing mode is set to in-form or popup. For other editing modes use EditorViewData(object)
Change default text for cancel delete button. Note: Available only on mobile devices.
public GridEditingSettingsBuilder<T> CancelDelete(string text)
The text for the CancelDelete action.
Returns:Available only on mobile devices.
Change default text for confirm delete button. Note: Available only on mobile devices.
public GridEditingSettingsBuilder<T> ConfirmDelete(string text)
The text for the ConfirmDelete action.
Returns:Available only on mobile devices.
Sets insert row position.
public GridEditingSettingsBuilder<T> CreateAt(GridInsertRowPosition position)
The position of the row inserted.
Returns:Enables or disables delete confirmation.
public GridEditingSettingsBuilder<T> DisplayDeleteConfirmation(bool value)
The boolean value for displaying a delete confirmation message.
Returns:Change default text for confirm delete button. Note: Available only on mobile devices.
public GridEditingSettingsBuilder<T> DisplayDeleteConfirmation(string message)
The message text for confirm delete button.
Returns:Enables or disables grid editing.
public GridEditingSettingsBuilder<T> Enabled(bool value)
The boolean value for enabling or disabbling the grid editing.
Returns:The Enabled method is useful when you need to enable grid editing on certain conditions.
Sets the Edit Mode for a Grid.
public GridEditingSettingsBuilder<T> Mode(GridEditMode mode)
The grid edit Mode.
Returns:Places the component in a Readonly or Editable mode.
public GridEditingSettingsBuilder<T> Readonly(bool value)
The boolean value for placing the component in a Readonly or Editable mode.
Returns:The name of the partial view located in the ~/Views/Shared/EditorTemplates/ folder that contains the custom editor defined as Template Component.
public GridEditingSettingsBuilder<T> TemplateComponentName(string templateName)
Configures the Window instance, which is used when the Grid edit mode is "popup".
public GridEditingSettingsBuilder<T> Window(Action<WindowBuilder> configurator)