So this is my grid and what I need is to have it hidden when the page is rendered and to show it when I click the search Button. Any ideas??
    @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)
        )    
    )
                Hiding the column in Kendo Grid is done simply by using the hidden property as in the following HTML design.
Kendo grid doesn't have HIDE/SHOW property. You need to do this in JQuery. At run time, kendo grid will convert it into DIV tag. you need to hide/show DIV tag in jquery.
You need to add the field property to your command column. The hideColumn/showColumn actions use either the column number or column field "name".
k-button and/or . k-button-icontext) to set readonly or disabled. The toolbutton works, but the in-row Edit and Delete buttons may not be changed (always clickable).
Kendo grid doesn't have HIDE/SHOW property. You need to do this in JQuery.
At run time, kendo grid will convert it into DIV tag.
you need to hide/show DIV tag in jquery.
(Div id will be name of grid )
Hide grid on page Load
$(document).ready(function() {
   $( "#Grid" ).hide();
});
Show grid on button click
$('#button').click(function(){
  $('#Grid').show();
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With