In the folowing I am trying to render the output of an action to the grid using MVC 4:
.ToolBar(t=>t.Template(@<text>
@Html.RenderAction("DisplayAccountDropDown", "ClientAccountState");
<button class="k-button" id="clearFilter">Clear</button>
<a class="k-button" href="@Url.Action("Export", "Holdings")" >Export</a>
</text>))
But the Html.RenderAction doesn't have a return value to render so throws an error. Is there a way to get the output of the action into the toolbar? I am converting an app to use Kendo so would rather not have to change the controller if possible.
.ToolBar(t=>t.Template(@<text>
@Html.RenderAction("DisplayAccountDropDown", "ClientAccountState");
<button class="k-button" id="clearFilter">Clear</button>
<a class="k-button" href="@Url.Action("Export", "Holdings")" >Export</a>
</text>))
But the Html.RenderAction doesn't have a return value to render so throws an error. Is there a way to get the output of the action into the toolbar? I am converting an app to use Kendo so would rather not have to change the controller if possible.