Class TreeGridEditOptionsBuilder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript.Models
Assembly: Syncfusion.EJ.dll
Syntax
public class TreeGridEditOptionsBuilder
Constructors
TreeGridEditOptionsBuilder(TreeGridEditOptions)
Initializes a new instance of the
Declaration
public TreeGridEditOptionsBuilder(TreeGridEditOptions edit)
Parameters
Type | Name | Description |
---|---|---|
TreeGridEditOptions | edit | It accepts the list of editSettings option |
Methods
AllowAdding()
It sets the value that indicates whether to enable the add action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder AllowAdding()
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
AllowAdding(Boolean)
It sets the value that indicates whether to enable the add action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder AllowAdding(bool allowAdding)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowAdding | It accepts the boolean value and enables or disables the add action |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
AllowDeleting()
It sets the value that indicates whether to enable the delete action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder AllowDeleting()
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
AllowDeleting(Boolean)
It sets the value that indicates whether to enable the delete action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder AllowDeleting(bool allowDeleting)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | allowDeleting | It accepts the boolean value and enables or disables the delete action |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
AllowEditing()
It sets the value that indicates whether to enable the edit action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder AllowEditing()
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
AllowEditing(Boolean)
It sets the value that indicates whether to enable the edit action in the editing mode.
Declaration
public TreeGridEditOptionsBuilder 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 |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
BatchEditSettings(Action<TreeGridBatchEditOptionsBuilder>)
It sets a value and indicate batch edit settings.
Declaration
public TreeGridEditOptionsBuilder BatchEditSettings(Action<TreeGridBatchEditOptionsBuilder> batchEditSettings)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TreeGridBatchEditOptionsBuilder> | batchEditSettings | It accepts the batch edit setting options as lambda expression |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
BeginEditAction(TreeGridBeginEditAction)
It sets a value to indicate the mode of edit action whether click or double click.
Declaration
public TreeGridEditOptionsBuilder BeginEditAction(TreeGridBeginEditAction beginEditAction)
Parameters
Type | Name | Description |
---|---|---|
TreeGridBeginEditAction | beginEditAction | It displays the begin edit mode list |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
DialogEditorTemplateID(String)
It sets a value that indicates the ID for dialog template.
Declaration
public TreeGridEditOptionsBuilder DialogEditorTemplateID(string dialogEditorTemplateID)
Parameters
Type | Name | Description |
---|---|---|
System.String | dialogEditorTemplateID | It accepts the string value and render template for editing dialog box |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
EditMode(TreeGridEditMode)
It sets a value that indicates the mode of editing
Declaration
public TreeGridEditOptionsBuilder EditMode(TreeGridEditMode editMode)
Parameters
Type | Name | Description |
---|---|---|
TreeGridEditMode | editMode | It displays the list of editMode options |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
EditSettings(TreeGridBatchEditOptions)
It sets a value and indicate batch edit settings.
Declaration
public TreeGridEditOptionsBuilder EditSettings(TreeGridBatchEditOptions batchEditSettings)
Parameters
Type | Name | Description |
---|---|---|
TreeGridBatchEditOptions | batchEditSettings | It accepts the batch edit setting options as list |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
RowPosition(TreeGridRowPosition)
It sets the position of an adding new row in tree grid.
Declaration
public TreeGridEditOptionsBuilder RowPosition(TreeGridRowPosition rowPosition)
Parameters
Type | Name | Description |
---|---|---|
TreeGridRowPosition | rowPosition | It displays the RowPosition options |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
ShowDeleteConfirmDialog()
It sets a value that indicates whether the confirm dialog has to be shown while deleting record
Declaration
public TreeGridEditOptionsBuilder ShowDeleteConfirmDialog()
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |
ShowDeleteConfirmDialog(Boolean)
It sets a value that indicates whether the confirm dialog has to be shown while deleting record
Declaration
public TreeGridEditOptionsBuilder ShowDeleteConfirmDialog(bool showDeleteConfirmDialog)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showDeleteConfirmDialog | It accepts the boolean value and enables or disables confirm dialog on deleting |
Returns
Type | Description |
---|---|
TreeGridEditOptionsBuilder | TreeGridEditOptionsBuilder |