kendo UI 中单个网格列中的多个元素
multiple elements in a single grid coloumns in kendo UI
我想在 kendo UI GRid 中的一个列中添加两个按钮。谁能帮忙做一下。
Html.Kendo().Grid<Employeeentity>()
.Name("grid")
.Columns(columns =>
{
columns.Command(command => command.Custom("Button1name").Click("showDetails")).Title("coloumn name");
columns.Command(command => command.Custom("Button2name").Click("getDetails")).Title("coloumn name");
}
我希望两个按钮都显示在一个列中。
谢谢
你只是';'在 columns.Command(command => ... ) 区域内将它们分开。
.Columns(columns =>
columns.Command(command => {
command.Custom("Button1Name").Click("showDetails");
command.Custom("Button2Name").Click("getDetails");
});
我想在 kendo UI GRid 中的一个列中添加两个按钮。谁能帮忙做一下。
Html.Kendo().Grid<Employeeentity>()
.Name("grid")
.Columns(columns =>
{
columns.Command(command => command.Custom("Button1name").Click("showDetails")).Title("coloumn name");
columns.Command(command => command.Custom("Button2name").Click("getDetails")).Title("coloumn name");
}
我希望两个按钮都显示在一个列中。
谢谢
你只是';'在 columns.Command(command => ... ) 区域内将它们分开。
.Columns(columns =>
columns.Command(command => {
command.Custom("Button1Name").Click("showDetails");
command.Custom("Button2Name").Click("getDetails");
});