Hi,
I am trying to create a grid with one column to return a result similar to your example here: http://demos.telerik.com/kendo-ui/grid/rowtemplate. I am using the server-side RowTemplate code such as...
@(Html.Kendo().Grid(Model.Results)
.Name("Components")
.RowTemplate(grid =>
@<text>
<tr>
<td>
ID: @item.ComponentID<br>
Name: @item.Name
... etc
</td>
</tr>
</text>
)
.DataSource(d => d.Ajax().ServerOperation(false))
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
)
I am basing my code on this example:
@model IEnumerable<Product>@(Html.Kendo().Grid(Model).Name("grid")
.RowTemplate(grid => @<text><div>Product Name: @product.ProductName</div><div>Units In Stock: @product.UnitsInStock</div></text>))
The output completely ignores the rowFormat and prints every field in the model object as a separate column (see attached photo).
I have tried almost everything - client templates, etc. Nothing stops every column from being displayed.
Any ideas would be appreciated.