1
如何設置MVC Telerik的電網運行和列標題文本。運行時列標題文本MVC Telerik的電網
如何設置MVC Telerik的電網運行和列標題文本。運行時列標題文本MVC Telerik的電網
您是否嘗試過在下面的例子中使用.title僞()方法是怎樣的?
Html.Telerik().Grid(Model.SearchResults)
.Name("Report")
.DataKeys(keys => keys.Add(p => p.RowID))
.DataBinding(d => d.Ajax()
.Select("Select", "Report")
.OperationMode(GridOperationMode.Client))
.Columns(c =>
{
c.Bound(p => p.RowID).Hidden();
c.Bound(p => p.UserID).Hidden();
c.Bound(p => p.LastName).Title("Last Name");
c.Bound(p => p.FirstName).Title("First Name");
c.Bound(p => p.Address).Title("Address");
})
.Resizable(resizing => resizing.Columns(true))
.Scrollable(c => c.Height("550px"))
.Sortable()
.Filterable()
.Pageable(paging =>
paging.PageSize(20)
.Style(GridPagerStyles.NextPreviousAndNumeric)
.Position(GridPagerPosition.Bottom)
)
.Footer(true)
.Reorderable(reorder => reorder.Columns(true))
.Groupable()