I need to customize the style of a panel bar from Kendo UI, specifically I want to divide the text "Blah-1 Blah-2" into two separate span blocks in HTML format, like <span>Blah-1</span>
and <span>Blah -2</span>
.
How can I achieve this with the code snippet below?
@(Html.Kendo().PanelBar()
.Name("panelBar")
.Items(panelBar =>
{
panelBar.Add().Text("Blah-1 Blah-2")
})
)
I attempted to include <span>
tags within the Text()
function, but it did not escape the html tags as expected.