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

[Solved] Displaying TabStrip in Grid

0 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sin
Top achievements
Rank 1
sin asked on 01 Apr 2011, 10:12 AM
my html code:
@model IEnumerable<DataModel.t_SendVerify>
       @(Html.Telerik()
       .Grid(Model)
       .Name("VerifyGrid")
       .DataKeys(keys => keys.Add(o => o.VerifyID).RouteKey("Id"))
       .Columns(columns =>
       {
           columns.Bound(o => o.VerifyID).Width(80).Title("序号");
           columns.Bound(o => o.Title).Width(150).Title("标题");
           columns.Bound(o => o.SendDateTime).Width(150).Title("发送时间");
           columns.Bound(o => o.Type).Width(80).Title("状态");
           columns.Template(@<text><button id="Insert" title="激活">激活</button> <button id="Invalid" title="作废">作废</button > <button id="CallBack" title="回退">回退</button></text>).Width(180);
       })
       .DetailView(detailView => detailView.Template(e =>
           {
               Html.Telerik().TabStrip()
                   .Name("TabStrip_" + e.VerifyID)
                   .SelectedIndex(0)
                   .Items(items =>
                       {
                           items.Add().Text("Orders").Content(@<div>111111</div>);
                           items.Add().Text("短信内容").Content(@<div>@e.Context</div>);
                       })
                       .Render();
           }))
        .RowAction(row =>
         {
             if (row.Index == 0)
             {
                 row.DetailRow.Expanded = true;
             }
         }))
but display is error:
Tags
Grid
Asked by
sin
Top achievements
Rank 1
Share this question
or