Setting Range

The range of the ProgressBar is set by using minimum and maximum values. The Minimum value specifies the value where the ProgressBar shows the process to have started. The Maximum value specifies the value where the process is completed. You can set the range by using the ‘MinValue’ and ‘MaxValue’ property.

  1. In the VIEW page, add a helper element to render the ProgressBar widget.
  • cshtml
  • // Add the following code example to the corresponding CSHTML page to render the ProgressBar control with customized range.
    	var progress;
    	$(document).ready(function () 
    		progress = $("#progressbar").data("ejProgressBar");
    		progress.setModel({ text: progress.getPercentage() + " %" });

    The following screenshot displays the output.