title: How to set kendo UI grid width
body: <p>I am facing a problem with the Kendo Grid width. I want the grid to stretch to fit the content of the grid. This grid which I am working on is created dynamically, so at times it may have just 2 columns and at times it may have max 5 columns. I don't want the grid to expand and take the whole page for showing just two columns. </p>
  
  <p>To get this working I added the following  css </p>
  
  <pre><code>.k-grid table{
      display: inline;
  }
  </code></pre>
  
  <p>The problem is that when this style is applied, it completely messes up the column header and column alignment. Does anyone know how to fix this?</p>