4
所以这是我的网格,我需要的是在页面呈现时隐藏它,并在单击搜索按钮时显示它。有任何想法吗??如何隐藏/显示Kendo Grid
@Html.WebCore().LinkButton(ButtonType.Zoeken, cssClass: "myZoekenButton")
@(Html.Kendo().Grid<AanvragenZoekenViewModel.ZoekResultaat>()
.Name("Grid")
.Columns(columns =>
{
...
columns.Bound(zoekResultaat => zoekResultaat.Opmerkingomschrijving).ClientTemplate("#= Opmerkingomschrijving#").Hidden(Model.DossierLijst);
})
...
.AutoBind(false)
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.Events(e => e.Error("onErrorhandling"))
.Model(model =>
{
})
.Read(read => read.Action(MVC.Dashboard.ActionNames.ReadItems, MVC.Dashboard.Name).Data("onReadAdditionalData"))
.PageSize(500)
)
)
这工作就好了。韩国社交协会。 – 2014-09-22 08:52:42