States
17 Feb 20222 minutes to read
Visualize progress in different states.
Determinate
This is the default state. You can use it when the progress estimation is known.
@(Html.EJS().ProgressBar("container")
.Type(Syncfusion.EJ2.ProgressBar.ProgressType.Linear).Value(100)
.Height("60")
.Minimum(0).Maximum(100)
.Render())
Indeterminate
By enabling the IsIndeterminate property, the state of the progress bar can be changed to indeterminate when the progress cannot be estimated or is not being calculated. It can be combined with determinate mode to know that the application is estimating progress before the actual progress starts.
@(Html.EJS().ProgressBar("container")
.Type(Syncfusion.EJ2.ProgressBar.ProgressType.Linear).Value(20)
.Height("60").IsIndeterminate(true)
.Minimum(0).Maximum(100)
.Render())
Buffer
You can use a secondary progress indicator when the primary progress depends on the secondary progress. This will allow users to visualize both primary and secondary progress simultaneously.
@(Html.EJS().ProgressBar("container")
.Type(Syncfusion.EJ2.ProgressBar.ProgressType.Linear).Value(40)
.Height("60").SecondaryProgress(60)
.Minimum(0).Maximum(100)
.Render())