DxTimeEdit<T>.ReadOnly Property

Specifies whether read-only mode is active.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
public override bool ReadOnly { get; set; }

Property Value

Type Description
Boolean

true to activate read-only mode; otherwise, false.

Remarks

Set the ReadOnly property to true to activate read-only mode. Time Edit allows you to display the value, but does not allow users to change it.

<DxTimeEdit @bind-Time="@Time" ReadOnly="true"> </DxTimeEdit>

@code {
  TimeSpan Time = DateTime.Now.TimeOfDay;
}

Run Demo: Time Edit - Read-Only and Disabled Modes

See Also