Hello,
I have a datetime picker and I want it to have the show the current time all the time and if a datetime picker is changed then just keep the edited time. is there a way to do this? so when it is just seeting on the page it will be like a clock always updating but if it is activated it will keep the date time ented.
I'm doing that but it does not keep it updated so if someone lets it sit 10 min which will happen with the application then the start time will be off by 10 min
To All,
I got it working. I added Majorsoft.Blazor.Components.timer.
added to my razer page
"AdvancedTimer IsEnabled="@_clockEnabled" IntervalInMilisec="@clockInterval" Occurring="Times.Infinite()" AutoStart="false" OnIntervalElapsed="@Clock" />"
and
<RadzenDatePicker TValue="DateTime" @bind-Value="@currentdate" ShowSeconds="true" ShowTime="true" CurrentDateChanged="@DatePicker1CurrentDateChanged" >
protected async System.Threading.Tasks.Task DatePicker1CurrentDateChanged(System.DateTime args)
{
_clockEnabled = false;
timetosave = currentdate; // this is where you save the time you want
}