Set Step dynamically

Hi,

how can I set the Step-Property dynamically in code?

Best,
Gerhard

1 Reply

SN Sevvandhi Nagulan Syncfusion Team March 9, 2020 06:27 AM UTC

Hi Gerhard,  

Greetings from Syncfusion support.  

You can set the step dynamically by affecting the variable directly as mentioned code snippet,  
 
  
<EjsTimePicker Value="@TimeValue" Step=@stepValue Format="HH:mm"></EjsTimePicker>  
  
<button @onclick="@increaseValue">Update Step</button>  
  
  
@code {  
    public DateTime TimeValue { get; set; } = DateTime.Now;  
  
    public int stepValue { get; set; } = 15;  
  
    public void increaseValue()  
    {  
        stepValue = 60;  
    }  
}  
 
Please find the sample below,  


Regards,  
Sevvandhi N  



Loader.
Up arrow icon