Class BeforeBatchAddArgs<T>
Provides information about an OnBatchAdd event.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class BeforeBatchAddArgs<T> : GridEventBaseArgs
Type Parameters
Name | Description |
---|---|
T | TValue of the grid component. |
Constructors
BeforeBatchAddArgs()
Declaration
public BeforeBatchAddArgs()
Properties
Cancel
Gets or sets a value indicating whether to prevent the rendering of the batch add form in the grid.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If set to |
DefaultData
Gets or sets the value for a newly added row.
Declaration
public T DefaultData { get; set; }
Property Value
Type | Description |
---|---|
T | The default value is |
Remarks
If a custom default value is provided, it will be displayed in the batch add form when a new row is added.
EditContext
Gets or sets the data related to the editing process, such as flags indicating which fields have been modified and the current set of validation messages.
Declaration
public EditContext EditContext { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.Forms.EditContext | An instance of the Microsoft.AspNetCore.Components.Forms.EditContext class that provides data about the editing process. |
Index
Gets or sets the index of the row to add a new row in the grid.
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the index of the newly added row. The default value is 0. |
Remarks
If the index property is set, a batch add form will be generated in the grid based on the specified index.
PrimaryKey
Gets the primary key value of the grid for the columns that have IsPrimaryKey property set to true.
Declaration
public string[] PrimaryKey { get; }
Property Value
Type | Description |
---|---|
System.String[] | A string array that represents the primary key value of the grid. |