I can change any title of a panel like this
//var li = panelbar.wrapper.find("> li:first span.k-link.k-header");
var li = panelbar.wrapper.find("> li:nth(1) span.k-link.k-header");
li.contents().first().replaceWith("New Name");
But it does not work if the paenlBar contains this a .Content(@<text> </text>); in the parent panel bars.
@(Html.Kendo().PanelBar()
.Name("panelbar")
.Items(panelbar =>
{
panelbar.Add().Text("First Person")
.Content(@<text>
@Html.TextBoxFor(m => m.firstName, new { @class = "input k-textbox"})
</text>);
})
)
Why is this?
Thanks