Class EditOptionsBuilder<T>
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class EditOptionsBuilder<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
EditOptionsBuilder(EditSettings)
Initializes a new instance of the
Declaration
public EditOptionsBuilder(EditSettings edit)
Parameters
Type | Name | Description |
---|---|---|
EditSettings | edit | It accepts the list of editSettings option |
Methods
AllowAdding()
It sets a value that indicates whether to enable insert action in the editing mode.
Declaration
public EditOptionsBuilder<T> AllowAdding()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowAdding(Boolean)
It sets a value that indicates whether to display the add new form by default in the grid.
Declaration
public EditOptionsBuilder<T> AllowAdding(bool allowAdding)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowAdding | It accepts the boolean value and enables or disables the add new form |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowDeleting()
It sets a value that indicates whether to enable the delete action in the editing mode.
Declaration
public EditOptionsBuilder<T> AllowDeleting()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowDeleting(Boolean)
It sets a value that indicates whether to enable the delete action in the editing mode.
Declaration
public EditOptionsBuilder<T> AllowDeleting(bool allowDeleting)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowDeleting | It accepts the boolean value and enables or disables the deleting action |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowEditing()
It sets the value that indicates whether to enable the edit action in the editing mode.
Declaration
public EditOptionsBuilder<T> AllowEditing()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowEditing(Boolean)
It sets a value that indicates whether to enable the edit action in the editing mode.
Declaration
public EditOptionsBuilder<T> AllowEditing(bool allowEditing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowEditing | It accepts the boolean value and enables or disables the edit action |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowEditOnDblClick()
It sets a value that indicates whether to enable the editing action while double click on the record
Declaration
public EditOptionsBuilder<T> AllowEditOnDblClick()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
AllowEditOnDblClick(Boolean)
It sets a value that indicates whether to enable the editing action while double click on the record
Declaration
public EditOptionsBuilder<T> AllowEditOnDblClick(bool allowEditOnDblClick)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowEditOnDblClick | It accepts the boolean value and enables or disables the editing on double click |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
DialogEditorTemplateID(String)
This specifies the id of the template. This template can be used to display the data that you require to be edited using the Dialog Box
Declaration
public EditOptionsBuilder<T> DialogEditorTemplateID(string dialogEditorTemplateId)
Parameters
Type | Name | Description |
---|---|---|
System.String | dialogEditorTemplateId | It accepts the string value and display the data for editing in dialogbox |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
EditMode(EditMode)
It sets a value that indicates whether to define the mode of editing
Declaration
public EditOptionsBuilder<T> EditMode(EditMode editMode)
Parameters
Type | Name | Description |
---|---|---|
EditMode | editMode | It displays the list of editMode options |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ExternalFormTemplateID(String)
This specifies the id of the template. This template can be used to display the data that you require to be edited using the External edit form
Declaration
public EditOptionsBuilder<T> ExternalFormTemplateID(string externalFormTemplateId)
Parameters
Type | Name | Description |
---|---|---|
System.String | externalFormTemplateId | It accepts the string value and display the data for editing in external edit form |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
FormPosition(FormPosition)
This specifies to set the position of an External edit form either in the top-right or bottom-left of the grid
Declaration
public EditOptionsBuilder<T> FormPosition(FormPosition position)
Parameters
Type | Name | Description |
---|---|---|
FormPosition | position | It display the list of Formpostion options to set the position of External editform |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
InlineFormTemplateID(String)
This specifies the id of the template. This template can be used to display the data that you require to be edited using the Inline edit form
Declaration
public EditOptionsBuilder<T> InlineFormTemplateID(string inlineFormTemplateId)
Parameters
Type | Name | Description |
---|---|---|
System.String | inlineFormTemplateId | It accepts the string value and display the data for editing in Inline edit form |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
RowPosition(RowPosition)
This specifies to set the position of an adding new row either in the top or bottom of the grid
Declaration
public EditOptionsBuilder<T> RowPosition(RowPosition rowposition)
Parameters
Type | Name | Description |
---|---|---|
RowPosition | rowposition | It displays the RowPosition options to set the position of adding new row |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowAddNewRow()
It sets a value that indicates whether to display the add new form by default in the grid.
Declaration
public EditOptionsBuilder<T> ShowAddNewRow()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowAddNewRow(Boolean)
It sets a value that indicates whether to display the add new form by default in the grid.
Declaration
public EditOptionsBuilder<T> ShowAddNewRow(bool showAddNewRow)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showAddNewRow | It accepts the boolean value and enables or disables the new form |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowConfirmDialog()
It sets a value that indicates whether the confirm dialog has to be shown while saving or discarding the batch changes
Declaration
public EditOptionsBuilder<T> ShowConfirmDialog()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowConfirmDialog(Boolean)
It sets a value that indicates whether the confirm dialog has to be shown while saving or discarding the batch changes
Declaration
public EditOptionsBuilder<T> ShowConfirmDialog(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | It accepts the boolean value and enables or disables the confirm dialog on batch changes |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowDeleteConfirmDialog()
It sets a value that indicates whether the confirm dialog has to be shown while deleting record
Declaration
public EditOptionsBuilder<T> ShowDeleteConfirmDialog()
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
ShowDeleteConfirmDialog(Boolean)
It sets a value that indicates whether the confirm dialog has to be shown while deleting record
Declaration
public EditOptionsBuilder<T> ShowDeleteConfirmDialog(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | It accepts the boolean value and enables or disables confirm dialog on deleting |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |
TitleColumn(String)
It sets a value that indicates whether the title for edit form is different from the primarykey column.
Declaration
public EditOptionsBuilder<T> TitleColumn(string titleColumn)
Parameters
Type | Name | Description |
---|---|---|
System.String | titleColumn | It accepts the string value and displays title for the editform |
Returns
Type | Description |
---|---|
EditOptionsBuilder<T> | EditOptionsBuilder |