Is there a way to set a panelbar individual panel title text with a ViewBag value instead of a literal string? In my code on line 7, the text is set as "Not Submitted". But I would like to populate it with a string value I build and place in Viewbag that shows a count of records for the type of "Not Submitted". It would read like this - "Not Submitted - (20)". If it's possible, what would be the syntax to use a variable/constant instead of literal string?
01.
@(Html.Kendo().PanelBar()
02.
.Name("panelbar")
03.
.ExpandMode(PanelBarExpandMode.Single)
04.
.HtmlAttributes(new { style = "width:100%" })
05.
.Items(panelbar =>
06.
{
07.
panelbar.Add().Text("Not Submitted")
08.
.Expanded(false)
09.
}