问题
我想编辑网格寻呼机的弹出窗口。我想将其位置设置为底部。我在图片上用红色标记了弹出窗口。
尝试
我发现了如何为kendo mvc DropDownList telerik
@(Html.Kendo().DropDownListFor(m => m.ServiceCode)
.HtmlAttributes(new { @class = "form-control", style = "width: 100%",
required = "required" })
....
.Animation(animation => animation.Open(effects =>
effects.SlideIn(SlideDirection.Up)))
.Popup(popup=>popup.Origin("top left").Position("bottom left"))
)
是否可以针对寻呼机的弹出窗口执行操作?
网格代码
我在我的 view.cshtml 中定义了剑道网格。数据已加载ajax。下面的代码(为清楚起见,省略了各列):
@(Html.Kendo().Grid<ProductDto>()
.Name("productsGrid")
.Columns(c => ...)
.Pageable(p => p.Input(true).PageSizes(new List<int> { 10, 30, 100 }))
.Sortable()
.Filterable()
.DataSource(dataSource =>
dataSource.Ajax()
.PageSize(10)
.Model(model => model.Id(p => p.ProductId))
.Read(read => read.Action("GetProducts", "Data"))
).Scrollable(s => s.Height("auto"))
.Resizable(resize => resize.Columns(true))
.AutoBind(false)
)