# Chunk

The ProgressBar component allows you to present the state of the progress in equally defined partitions:

![Chunk in Telerik UI for ASP.NET MVC ProgressBar](https://www.telerik.com/aspnet-mvc/documentation/assets/b51ba4f08b2508534785757ced3b2794/progressbar-chunk.png)

This is enabled with the `Type` enumeration property and the `ChunkCount` setting:

```Razor HtmlHelper
 @using Kendo.Mvc.UI

@(Html.Kendo().ProgressBar()
	  .Name("profileCompleteness")
	  .Type(ProgressBarType.Chunk)
	  .ChunkCount(5)
	  .Min(0)
	  .Max(5)
	  .Value(2)
)
```

The calculation of the completeness % percents can happen with the `.value()` API method and javascript logic depending on the total count of inputs in the form. Here is an example:

```JavaScript
     $(".forms input").change(function () {
         var completeness = 5;
         $(".forms input").each(function () {
             if (this.value == "") {
                 completeness--;
             }
         });

         pb.value(completeness);
         $("#completed").text((completeness * 20) + "%");
     });
```

## See Also

* [Chunk ProgressBar for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/progressbar/chunk)
* [Server-Side API of the ProgressBar](https://www.telerik.com/aspnet-mvc/documentation/api/progressbar)
* [Client-Side API of the ProgressBar](https://docs.telerik.com/kendo-ui/api/ui/progressbar)
