Resize column programmatically

4 posts, 1 answers
  1. Simon
    Simon avatar
    166 posts
    Member since:
    Sep 2010

    Posted 21 Apr 2015 Link to this post

    How can we set a grid column width programmatically (after the grid initialization)?
  2. Answer
    Ryan
    Ryan avatar
    61 posts
    Member since:
    Mar 2014

    Posted 21 Apr 2015 Link to this post

  3. Simon
    Simon avatar
    166 posts
    Member since:
    Sep 2010

    Posted 21 Apr 2015 in reply to Ryan Link to this post

    Thanks!  It's working!
  4. Chris
    Chris avatar
    2 posts
    Member since:
    Jul 2015

    Posted 19 Jul 2017 Link to this post

    I would not recommend doing this to resize columns. I did this in my project at work and it caused filter logic to stop working on the kendo grid. This is due to the fact that calling setOptions rebinds the grid (http://www.telerik.com/forums/loading-grid-options-causes-an-error-when-calling-todatasourceresult).

    I would recommend using JQuery and CSS as shown here: http://www.telerik.com/forums/resizing-column-dynamically

     

Back to Top