This question is locked. New answers and comments are not allowed.
I am binding my tabstrip to my model. I'd like the content of the tabstrip pane to be fully populated when the page loads and because of that I want to avoid Load on Demand. However, when I try to do this using the .Content(() =>{}) method, I get a run-time error. Load on demand works fine.
This is an example of what's current working (load on demand):
However, when I try to do anything with the .Content method, it fails. Any ideas? The exact error is "error CS1593: Delegate 'Action' does not take 1 arguments".
This doesn't work:
p.s. I'm using 2011.2.1006, which was provided to me as a hotfix for an unrelated issue.
This is an example of what's current working (load on demand):
<% Html.Telerik()
.TabStrip()
.SelectedIndex(0)
.Name("ChartSeries_" + chart.Name)
.BindTo(chart.Series, (item, series) =>
{
item.Text = series.Name;
item.ImageUrl = Url.Content("~/content/images/report16n.png");
item.ContentUrl = Url.Action("ShowChartOptions",
new
{
chartType = series.ChartType,
selection = series.ChartSubType
});
})
.Render(); %>
However, when I try to do anything with the .Content method, it fails. Any ideas? The exact error is "error CS1593: Delegate 'Action' does not take 1 arguments".
This doesn't work:
<% Html.Telerik()
.TabStrip()
.SelectedIndex(0)
.Name("ChartSeries_" + chart.Name)
.BindTo(chart.Series, (item, series) =>
{
item.Text = series.Name;
item.ImageUrl = Url.Content("~/content/images/report16n.png");
item.Content(() =>
{%>
Some random content I want to appear
<% });
})
.Render(); %>