title: kendo ui resize column
body: <p>I am using the following function(which i got from web) to resize the column in kendo ui.
  this is based on Index, i am looking out to see if there can be an option to select by column title or field/key.</p>
  
  <p>when i reorder the grid column, this function fails.</p>
  
  <pre><code> function resizeColumn(idx, width) {
              $("#grid .k-grid-header-wrap") //header
                 .find("colgroup col")
                 .eq(idx)
                 .css({ width: width });
  
              $("#grid .k-grid-content") //content
                 .find("colgroup col")
                 .eq(idx)
                 .css({ width: width });
          }
  </code></pre>