Telerik Grid在telerik Tabstrip外面显示

时间:2013-08-21 17:37:12

标签: asp.net-mvc razor telerik

我在选项卡中显示网格时遇到问题。网格在标签条上方工作正常。

有没有人知道如何修复问题所以它在选项卡中?

它是一个带有razor vbhtml的MVC项目

我获取内容的方式是

     With Html.Telerik().TabStrip().Name("department-edit").Items(Sub(x)

                                                                     x.Add.Text("Test").Content(TabContacts().ToHtmlString)
                                                                     x.Add.Text("Info").Content(TabInfo().ToHtmlString()).Selected(False)

                                                             End Sub)
    .Render()
End With 


    @helper TabContacts()

        @<table class="Content">
            <tr>
                <td>

                    @Code 

                        With Html.Telerik().Grid(Model.DepartmentContacts)

                            .Name("departmentcontact-grid")

                            .DataKeys(Sub(keys) keys.Add(Function(x) x.Id))

                            .DataBinding(Sub(dataBinding)
                                                 dataBinding.Ajax().Select("List", "Department", New With {.departmentId = Model.Id})
                                         End Sub)

                            .Columns(Sub(cols)
                                             cols.Bound(Function(x) x.DisplayOrder1).Width(100).Centered()
                                             cols.Bound(Function(x) x.ContactName).Width(500).ReadOnly()
                                             cols.Bound(Function(x) x.ContactNumber).Width(100).Centered()
                                             cols.Bound(Function(x) x.ContactExt).Width(100).Centered()

                                             cols.Bound(Function(x) x.Email).Width(100).Centered()
                                             cols.Bound(Function(x) x.Location).Width(100).Centered()
                                             cols.Bound(Function(x) x.IsActive).Width(100).Centered()
                                             cols.Bound(Function(x) x.IsMainContact).Width(100).Centered()


                                     End Sub)

                            .Pageable(Sub(settings) settings.PageSize(10).Position(GridPagerPosition.Both))
                            .Render()
                        End With

                    End Code

                </td>
            </tr>

        </table>    
  End helper

由于

0 个答案:

没有答案