title: How to set the height of KendoUI Grid with it's ASP MVC Complete Wrapper
body: <p>I'm using KendoUI Grid with its ASP MVC Complete Wrapper library and I'm having problem setting the height of my grid in the razor code. I tried setting the HTMLAttribute but doesn't seems to work.</p>
  
  <pre><code>@(Html.Kendo().Grid&lt;SoftInn.Data.Country&gt;()
      .Name("grid-countries")
      .DataSource(datasource =&gt; datasource.Ajax()
                                  .Model(model =&gt; model.Id(record =&gt; record.Id))
                                  .Create(create =&gt; create.Action("Add", "Country"))
                                  .Read(read =&gt; read.Action("GetAll", "Country"))
                                  .Update(update =&gt; update.Action("Update", "Country"))
                                  .Destroy(delete =&gt; delete.Action("Delete", "Country"))
                                  .Events(events =&gt;
                                              {
                                                  events.Sync("gridcountries_synchandler");
                                                  events.Error("gridcountries_errorhandler");
                                              })
                                  .PageSize(10)                                   
      )
      .Columns(columns =&gt;
                  {
                      columns.Bound(r =&gt; r.Name);
                      columns.Bound(r =&gt; r.Currency);
                      columns.Bound(r =&gt; r.TimeZone);
                      columns.Command(command =&gt; { command.Edit(); command.Destroy(); }).Width(170);
                  })
      .ToolBar(toolbar =&gt;
                   {
                       toolbar.Create().Text("Add New Country");                            
                       toolbar.Custom().Text("Refresh").Url("#").HtmlAttributes(new { onclick = "window.refreshGrid($(this).parent().parent())", @class = "customRefreshButton" });
  
                       toolbar.Custom().Text("More").Url("#").HtmlAttributes(new { onclick = "window.toggleDisplay($('#grid-countries &gt; .k-grouping-header'))", @class = "customToggleButton float-right" });                         
                   }
      )
      .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
      .Pageable(pageable =&gt;
                  {
                      pageable.Refresh(true);
                      pageable.PageSizes(true);
                  })
      .Resizable(resize =&gt; resize.Columns(true))
      .Reorderable(reorder =&gt; reorder.Columns(true))
      .Sortable()
      .Scrollable()
      .Filterable()
      .Selectable()
      .ColumnMenu()
      .Groupable()
      .HtmlAttributes(new { Height = "400px"})  
    )
  </code></pre>