SfDatePicker error when AllowEdit="false" (blazor 18.2.44)

Im getting following error when SfDatePicker property is set to AllowEdit="false"


Code
<hr />
<p>DatePicker value is: @DateValue</p>
<hr />
 
<SfDatePicker TValue="DateTime?" @bind-Value="@DateValue" ShowClearButton="false" AllowEdit="false"></SfDatePicker>
 
@code{
    public DateTime? DateValue { getset; } = DateTime.Now;
}






5 Replies 1 reply marked as answer

BC Berly Christopher Syncfusion Team July 14, 2020 12:01 PM UTC

Hi Ashimaz, 
  
Sorry for the inconvenience caused. 
  
We have validated the reported issue “While disable the AllowEdit property, then DatePicker throws an exception” and confirmed this as a bug at our end. This fix will be included in our upcoming patch release scheduled on 21st July 2020. We appreciate your patience until then. You can track the status of the reported issue from the below feedback link. 
  
  
Regards, 
Berly B.C 



BC Berly Christopher Syncfusion Team July 14, 2020 12:37 PM UTC

Hi Ashimaz, 
  
We would like to inform you that use the below mentioned work around solution until the fix will be included in our upcoming patch release. 
  
<hr /> 
<p>DatePicker value is: @DateValue</p> 
<hr /> 
 
<SfDatePicker TValue="DateTime?" @bind-Value="@DateValue" ShowClearButton="false" AllowEdit="@edit"></SfDatePicker> 
 
@code{ 
 
    private bool edit { get; set; } = true; 
 
    protected override void OnAfterRender(bool firstRender) 
    { 
        if (firstRender) 
        { 
            this.edit = false; 
            StateHasChanged(); 
        } 
    } 
    public DateTime? DateValue { get; set; } = DateTime.Now; 
} 
 

  
For your reference, we have prepared the sample and attached it below. 
  
Regards, 
Berly B.C  


Marked as answer

AS ashimaz July 14, 2020 04:10 PM UTC

Thank you, I will try that.

Could you please check this request also.

https://www.syncfusion.com/forums/155987/sfgrid-adaptors-urladaptor-adding-header-authorization-blazor-18-2-44



BC Berly Christopher Syncfusion Team July 15, 2020 05:16 AM UTC

Hi Ashimaz, 
  
The provided Grid forum is updated. Please check and if you need any other assistance update in that forum. 
  
Regards, 
Berly B.C 



AS ashimaz July 15, 2020 04:58 PM UTC

Thank you, waiting for next update.

Loader.
Up arrow icon