This is a migrated thread and some comments may be shown as answers.

[Solved] DetailsView coming out of order

0 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ravindra
Top achievements
Rank 1
Ravindra asked on 22 Apr 2011, 07:34 PM
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

 

 

@(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

 

Tags
General Discussions
Asked by
Ravindra
Top achievements
Rank 1
Share this question
or