Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112843
    michaelsanders
    Participant

    How do I bind data to the Smart.DateTimePicker? Are controlled and uncontrolled modes supported?

    #112851
    Markov
    Keymaster

    Hi,

    You can use its setDate and getDate methods to set and get dates or bind its value property to a Blazor variable.

    
    <DateTimePicker @bind-Value="@selectedDate" FormatString="dd/MM/yyyy HH:mm" />
    
    <p>Selected: @selectedDate</p>
    
    @code {
        private DateTime selectedDate = DateTime.Now;
    }

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.