This question is locked. New answers and comments are not allowed.
I currently have a partial view that renders the Telerik MVC Grid. The model passed to the partial view contains a bool field that states whether or not the grid should contain a detail view.
The following code doesn't render the table but leaves the expand controls in place. Ideally I would like to hide the expand controls and the rendering of the template on the server side.
The following code doesn't render the table but leaves the expand controls in place. Ideally I would like to hide the expand controls and the rendering of the template on the server side.
.DetailView(detailView => detailView.Template( @<text> @{ if (!Model.IsLowestLevel) { @*render grid*@ } } </text>))