Provide ConvertValue Event for DatePicker. #1553

Closed
opened 2026-01-29 17:55:19 +00:00 by claunia · 1 comment
Owner

Originally created by @Molinware on GitHub (Dec 23, 2024).

Is your feature request related to a problem? Please describe.
We need the datepicker to accept custom date values.
For example: type "020124" we would like to set the date to 02/01/2024.

Describe the solution you'd like
RadzenNumeric has the ConvertValue event, if RadzenDatePicker had it too it would resolve...

Describe alternatives you've considered
None

Additional context
None

Originally created by @Molinware on GitHub (Dec 23, 2024). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. --> **Is your feature request related to a problem? Please describe.** We need the datepicker to accept custom date values. For example: type "020124" we would like to set the date to 02/01/2024. **Describe the solution you'd like** RadzenNumeric has the ConvertValue event, if RadzenDatePicker had it too it would resolve... **Describe alternatives you've considered** None **Additional context** None
Author
Owner

@akorchev commented on GitHub (Dec 27, 2024):

RadzenDatePicker has the ParseInput parameter which allows you to provide custom parse implementation.

<RadzenDatePicker ParseInput=@ParseDate ... />

@code {
    DateTime? ParseDate(string value)
    {
       // Parse implementation
    }
}
@akorchev commented on GitHub (Dec 27, 2024): RadzenDatePicker has the ParseInput parameter which allows you to provide custom parse implementation. ``` <RadzenDatePicker ParseInput=@ParseDate ... /> @code { DateTime? ParseDate(string value) { // Parse implementation } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1553