[]
        
(Showing Draft Content)

C1.Blazor.Grid.GridColumn.CellEditingTemplate

CellEditingTemplate Property

CellEditingTemplate

Gets or sets the template used to edit a cell.

Declaration
[Parameter]
public RenderFragment<GridControlEditingContext> CellEditingTemplate { get; set; }
<Parameter>
Public Property CellEditingTemplate As RenderFragment(Of GridControlEditingContext)
Remarks

Set Editor to the editor component instance when using a Blazor component. This is not required when the editor is a non-component element (for example, a regular HTML input). Make sure to update Data with the editor’s value.

Examples

Example:

<CellEditingTemplate>
    @{
        var data = (MyModel)context.Data;
    }
    <C1TextBox @ref="context.Editor" @bind-Text="data.MyPropertyName" />
</CellEditingTemplate>