title: Kendo widgets two level deep in Razor, inline markup blocks cannot be nested
body: <p>I´m trying to implement Kendo widgets two level deep but the Razor engine keeps complaining: <em>"Inline markup blocks (@Content) cannot be nested.  Only one level of inline markup is allowed."</em></p>
  
  <p>Is there a way for the Razor engine to render helpers two level deep?</p>
  
  <p><strong>My code example:</strong></p>
  
  <pre><code>@(Html.Kendo().TabStrip()
    .Name("tabStrip")
    .Items(tabstrip =&gt;
        {
            tabstrip.Add().Text("Strip1")
                    .Selected(true)
                    .Content(@&lt;text&gt;
                                  @RenderPanelBar()
                              &lt;/text&gt;);
            tabstrip.Add().Text("Strip2")
                    .Content(@&lt;text&gt;
  
                              &lt;/text&gt;);
        })
  )
  
  @helper RenderPanelBar(){
  @(Html.Kendo().PanelBar()
        .Name("panelBar")
        .ExpandMode(PanelBarExpandMode.Single)
        .Items(panelbar =&gt;
            {
                panelbar.Add().Text("panel1")
                        .Expanded(true)
                        .Content(@&lt;div&gt;
                                      &lt;div&gt;
                                          @(Html.Kendo().Grid&lt;GroupViewModel&gt;()
                                                .Name("GroupGrid")
                                                .Columns(columns =&gt;
                                                    {
                                                        columns.Bound(c =&gt; c.GroupID).Hidden();
                                                        columns.Bound(c =&gt; c.Name);
                                                        columns.Command(command =&gt; { command.Edit(); command.Destroy(); });
                                                    })
                                                .ToolBar(toolbar =&gt;
                                                    {
                                                        toolbar.Create();
                                                        toolbar.Template(@&lt;text&gt;
                                                                              @RenderDropDown()  //&lt;-- here the error occurs
                                                                          &lt;/text&gt;);
                                                    } 
                                                )
                                                .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
                                                .Scrollable(s =&gt; s.Enabled(false))
                                                .Selectable(s =&gt; s.Enabled(true).Mode(GridSelectionMode.Single))
                                                .DataSource(dataSource =&gt; dataSource
                                                                              .Ajax()
                                                                              .Read(read =&gt; read.Action("Group_Grid_Read", "Home"))
                                                                              .Events(events =&gt; events.Error("error_handler"))
                                                                              .Model(model =&gt; model.Id(p =&gt; p.GroupID))
                                                                              .Create(update =&gt; update.Action("EditingInline_Create", "Home"))
                                                                              .Update(update =&gt; update.Action("EditingInline_Update", "Home"))
                                                                              .Destroy(update =&gt; update.Action("EditingInline_Destroy", "Home"))
                                                )
                                                .Events(e =&gt; e.Change("onGroupGridChange").Save("GroupGrid_Save"))
                                            )
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;);
                panelbar.Add().Text("panel2")
                        .Content(@&lt;div&gt;
                                  //stuff abbreviated
                                  &lt;/div&gt;
                    );
            })
    )
  }
  
  
  @helper RenderDropDown(){
  &lt;div class="toolbar"&gt;
      &lt;label class="category-label" for="category"&gt;Show products by category:&lt;/label&gt;
      @(Html.Kendo().DropDownList()
          .Name("categories")
          .OptionLabel("All")
          .DataTextField("CategoryName")
          .DataValueField("CategoryID")
          .AutoBind(false)
          .Events(e =&gt; e.Change("categoriesChange"))
          .DataSource(ds =&gt;
              {
                  ds.Read("ToolbarTemplate_Categories", "Grid");
              })
          ) 
  &lt;/div&gt;
  }
  </code></pre>