radzenhq / radzen-blazor

Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.
https://www.radzen.com
MIT License
3.52k stars 785 forks source link

Cannot make custom onchange logic in RadzenNumeric #80

Closed bazarniy closed 3 years ago

bazarniy commented 3 years ago

Hi guys! I want to extend data formatting in RadzenNumeric. For example replace ",.,.," to "." before parsing double. I have no delegate to do this and cannot use inheritence from RadzenNumeric because "protected async Task OnChange" isn't virtual.

UPDATE

Is your feature request related to a problem? Please describe. I want to have custom logic to prepare field value (for example collapse multiple ",." characters into one, remove invalid "-" symbols and so on). I cannot make it at all. There are no ways to put custom logic there.

Describe the solution you'd like Make property for my own delegate to update value in ChangeEventArgs

Describe alternatives you've considered Make method "protected async Task OnChange"

Additional context https://github.com/radzenhq/radzen-blazor/blob/a5293d714b7cfdb934cd01982ff7d5b46962deef/Radzen.Blazor/RadzenNumeric.razor#L123

akorchev commented 3 years ago

This issue does not follow the issue templates.