I have a div tag which has all three controls within the tag
1. TabStrip as the main container
2. Panel bar inside the tab
3.Dropdown inside the panel bar.
But the code is giving me the error - Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
Can somebody help me to resolve and fix it.
Below is my code structure
<div class="InputArea">@(Html.Kendo().TabStrip()
.Name("ScenaioNMDTabStrip")
.TabPosition(TabStripTabPosition.Top)
.Items(tabstrip =>
{
tabstrip.Add().Text("NMD")
.Selected(true)
.HtmlAttributes(new { style = "height: 55px;width: 20%;" })
.Content(@<text>
<div class="col-lg-11" style="float:left;">
</div>
@(Html.Kendo().PanelBar()
.Name("panelbar1")
.HtmlAttributes(new { style = "width:200px;" })
.Items(panelbar=>{
panelbar.Add().Text("Scenario NMD")
.Content(@<text>
@(Html.Kendo().DropDownList()
.Name("EmpyreanVersion")
.DataTextField("VersionId")
.DataValueField("VersionId")
.HtmlAttributes(new { style = "width: 150px;" })
)
</text>);
})
)
</text>);
tabstrip.Add().Text("Empyrean");
})
)
</div>