This question is locked. New answers and comments are not allowed.
Hello i'm trying to create a column template that is called inside a helper, but the column template content isn't render.
this is my helper
i call this helper in the view, the grid is rendered and also the columns and rows but no content is created.
Can someone tell me why?
Best Regards,
this is my helper
@helper GetGrid()
{
@(Html.Telerik().Grid<
Infrastructure.IServico
>()
.Name("grid")
.TableHtmlAttributes(new { @class = "gridTable" })
.Columns(columns =>
{columns.Template(
@<
text
><
div
>Test</
div
></
text
> // does't appear in the page
).Title("Title");
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("AjaxBinding", "ControllerSample"))
.Pageable()
.Sortable())
}
i call this helper in the view, the grid is rendered and also the columns and rows but no content is created.
Can someone tell me why?
Best Regards,