gpt4 book ai didi

kendo-ui - 在剑道网格中实现虚拟滚动条后标题和列未对齐

转载 作者:行者123 更新时间:2023-12-01 03:57:13 25 4
gpt4 key购买 nike

我已经成功地在网格中实现了滚动条,一旦我实现了滚动条标题并且该列未对齐,因为滚动条只向左推列而不是向左推列标题。任何建议,谢谢

谢谢

@(Html.Kendo().Grid<HH.BookModel>()

.Name("Book")
.HtmlAttributes(new { @Style = "align:center; font-size:10px; width:495px" })
.Columns(columns =>
{


columns.Bound(p => p.Description);
columns.Bound(p => p.SessionCreateDate).EditorTemplateName);
columns.Command(commands => commands.Destroy()).Width(100);



})


.Editable(editable => editable.Mode(GridEditMode.InLine))
.Sortable()


.Selectable()
.Scrollable(scrollable => scrollable.Virtual(true))
.ColumnMenu(c => c.Columns(false))
.DataSource(dataSource => dataSource
.Ajax()//bind with Ajax instead server bind
.PageSize(5)
.ServerOperation(true)
.Model(model =>
{
model.Id(p => p.BookID);

})
.Sort(sort => sort
.Add(x => x.Description).Descending())

.Read(read => read.Action("GetBookData", "BookDetails").Type(HttpVerbs.Get))
.Destroy("DeleteBook", "BookDetails")
)



)

最佳答案

尝试设置两列的宽度。第三个将占据其余的空间。这也可以正确设置标题单元格的宽度。

关于kendo-ui - 在剑道网格中实现虚拟滚动条后标题和列未对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16282222/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com