This question is locked. New answers and comments are not allowed.
Hi,
we are trying to use the details view template to show some data on expading a row in MVC grid.
But it is so happening that the details view content is coming on the top of the grid rather than sitting in the details view part of individual row item. below is the code
Please let me know where it is going wrong..
thanks,
RK
we are trying to use the details view template to show some data on expading a row in MVC grid.
But it is so happening that the details view content is coming on the top of the grid rather than sitting in the details view part of individual row item. below is the code
@(Html.Telerik().Grid(context.Data) .Name("Grid") .Columns(columns => { if (Columns != null) { foreach (GridColumn item in Columns) { if (item.ColumnType == GridColumType.Normal) { columns.Bound(item.Key).Title(item.Header).Filterable(item.Filterble).Sortable(item.Sortable).Visible(item.IsVisible); } } } else { columns.AutoGenerate(true); } }) .Pageable(paging => paging.Enabled(config.IsPagable)) .Sortable(sorting => sorting.Enabled(config.IsSortable)) .Filterable(filter => filter.Enabled(config.IsFilterable)) .Groupable(grouping => grouping.Enabled(config.IsGroupable)) .DataKeys(dataKeys => dataKeys.Add("ClientID")) .DetailView(detailView => detailView.Template(c => { @Html.Telerik().TabStrip() .Name("Tab") .HtmlAttributes(new { @class = "attachment-grid" }) .Items(items => { items.Add() .Text("Tab1"); items.Add() .Text("Tab2"); } ).Render(); } )) )Please let me know where it is going wrong..
thanks,
RK