alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class InPlaceEditorTemplate

    Represents a template for rendering custom components within the Syncfusion.Blazor.InPlaceEditor during edit mode. It allows for the integration of custom UI elements, such as Blazor native textboxes or HTML select elements.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    InPlaceEditorTemplate
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.InPlaceEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class InPlaceEditorTemplate : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The InPlaceEditorTemplate is used to define the editor's appearance and behavior when activated. It is a child component of the Syncfusion.Blazor.InPlaceEditor and provides the ChildContent for custom rendering.

    Examples

    The following example demonstrates how to use the InPlaceEditorTemplate with a SfTextBox.

    <SfInPlaceEditor TValue="string" Mode="RenderMode.Inline">
        <InPlaceEditorTemplate>
            <SfTextBox Value="@("Enter your text")"></SfTextBox>
        </InPlaceEditorTemplate>
    </SfInPlaceEditor>

    Constructors

    InPlaceEditorTemplate()

    Declaration
    public InPlaceEditorTemplate()

    Properties

    ChildContent

    Gets or sets the content to be rendered inside the editor template.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment that defines the UI elements to be displayed when the In-Place Editor is in edit mode. The default value is null.

    Remarks

    This property allows you to specify custom components, such as a SfTextBox or other input controls, that will appear for editing.

    Methods

    Dispose()

    Releases the unmanaged resources used by the InPlaceEditorTemplate.

    Declaration
    public virtual void Dispose()
    Remarks

    This method calls the virtual Dispose(bool) method to perform the actual cleanup.

    Dispose(bool)

    Releases the unmanaged resources used by the InPlaceEditorTemplate and optionally releases the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    A bool value that indicates whether the method call comes from a Dispose() method (if true) or from a finalizer (if false).

    Overrides
    OwningComponentBase.Dispose(bool)
    Remarks

    When disposing is true, this method releases all managed resources by setting the Parent and ChildContent references to null.

    OnInitializedAsync()

    A protected method that is invoked when the component is initialized.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()
    Remarks

    This method registers the template with its parent Syncfusion.Blazor.InPlaceEditor component by calling UpdateTemplate(InPlaceEditorTemplate).

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved