diff --git a/Radzen.Blazor.Tests/NumericRangeValidatorTests.cs b/Radzen.Blazor.Tests/NumericRangeValidatorTests.cs index f3698d2c046..ec55d8cba36 100644 --- a/Radzen.Blazor.Tests/NumericRangeValidatorTests.cs +++ b/Radzen.Blazor.Tests/NumericRangeValidatorTests.cs @@ -29,6 +29,8 @@ public ValueTask FocusAsync() } public bool Disabled { get; set; } + public bool Visible { get; set; } + public IFormFieldContext FormFieldContext => null; public object Value { get; set; } } diff --git a/Radzen.Blazor/Common.cs b/Radzen.Blazor/Common.cs index 03a297b6418..a09204b8aa0 100644 --- a/Radzen.Blazor/Common.cs +++ b/Radzen.Blazor/Common.cs @@ -3416,6 +3416,16 @@ public interface IRadzenFormComponent /// Sets the Disabled state of the component /// bool Disabled { get; set; } + + /// + /// Sets the Visible state of the component + /// + bool Visible { get; set; } + + /// + /// Sets the FormFieldContext of the component + /// + IFormFieldContext FormFieldContext { get; } } /// diff --git a/Radzen.Blazor/RadzenDatePicker.razor.cs b/Radzen.Blazor/RadzenDatePicker.razor.cs index e29e1efc8a7..95f2da21e36 100644 --- a/Radzen.Blazor/RadzenDatePicker.razor.cs +++ b/Radzen.Blazor/RadzenDatePicker.razor.cs @@ -750,6 +750,8 @@ private string ButtonClasses [Parameter] public bool Disabled { get; set; } + public IFormFieldContext FormFieldContext { get; set; } = null; + /// /// Gets or sets a value indicating whether days part is shown. ///