Posted
on Apr 5, 2012
(permalink)
I have a partial view that defines a combobox item:
@(Html.Telerik().ComboBox()
.Name("ddlClientView")
.BindTo(@Model.ClientList)
.HtmlAttributes(new { @class = "smallerSelect rounded", style="height:18px;" })
)
where @Model.ClientList is a SelectList
In the Action method where I create the partial view I have output caching specified:
[OutputCache(Duration=3000)]
[ChildActionOnly]
public ActionResult ClientList()
{
return PartialView("ClientView", new ClientListViewModel());
}
this action is called from a layout file:
<div id="clientView">
@Html.Action("ClientList", "Util")
</div>
Problem: the combobox renders correctly the first time, including the first time after the cache duration expires. But if the view is created from the cache the telerik combox is empty.
I searched and didn't see any other comments about this.