DatePicker doesnt render correctly when using Value and Change event and PopupRenderMode.OnDemand #888

Open
opened 2026-01-29 17:45:51 +00:00 by claunia · 0 comments
Owner

Originally created by @uflowie on GitHub (Jun 14, 2023).

Describe the bug
When using PopupRenderMode.Ondemand and binding through Value and Explicit Change Event, the Popup will not correctly render for the first few clicks after setting a Date for the first time.

To Reproduce
Can be reproduced on the Datepicker Example on the Radzen homepage (but also locally):

  1. Go to https://blazor.radzen.com/datepicker
  2. Scroll down to "Get and Set the value of DatePicker using Value and Change event".
  3. Switch to "Edit Source" in the Example Window.
  4. Replace the second line with <RadzenDatePicker TValue="DateTime?" Value=@value Change="@(args => value = args)" PopupRenderMode="@PopupRenderMode.OnDemand"/>.
  5. Click "Run".
  6. Switch back to "Example"
  7. Click the Datepicker Icon. -> Datepicker Popup opens
  8. Click any Date -> Datepicker Popup closes
  9. Click the Datepicker Icon again.

Expected behavior
The Datepicker Popup opens again.

Observed behavior
The Datepicker Popup doesnt correctly render. Only a slight shadow is rendered (see below).

Screenshots
A slight shadow is visible, when the Popup is expected to be seen:
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Radzen Version: 4.13.1
Originally created by @uflowie on GitHub (Jun 14, 2023). **Describe the bug** When using PopupRenderMode.Ondemand and binding through Value and Explicit Change Event, the Popup will not correctly render for the first few clicks after setting a Date for the first time. **To Reproduce** Can be reproduced on the Datepicker Example on the Radzen homepage (but also locally): 1. Go to https://blazor.radzen.com/datepicker 2. Scroll down to "Get and Set the value of DatePicker using Value and Change event". 3. Switch to "Edit Source" in the Example Window. 4. Replace the second line with `<RadzenDatePicker TValue="DateTime?" Value=@value Change="@(args => value = args)" PopupRenderMode="@PopupRenderMode.OnDemand"/>`. 5. Click "Run". 6. Switch back to "Example" 7. Click the Datepicker Icon. -> Datepicker Popup opens 8. Click any Date -> Datepicker Popup closes 9. Click the Datepicker Icon again. **Expected behavior** The Datepicker Popup opens again. **Observed behavior** The Datepicker Popup doesnt correctly render. Only a slight shadow is rendered (see below). **Screenshots** A slight shadow is visible, when the Popup is expected to be seen: ![image](https://github.com/radzenhq/radzen-blazor/assets/119594712/33a548b9-657a-47c5-b8bb-b052bd306ac3) **Desktop (please complete the following information):** - OS: Windows 10 - Browser: Chrome - Radzen Version: 4.13.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#888