How do add Vertical and Horizontal scrolling to the bound column

3 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    7 posts
    Member since:
    Jan 2014

    Posted 09 Apr Link to this post

    Hi..
    I have a template that I'm generating in code. How do add Vertical and Horizontal scrolling to the bound column?


      boundColumn = new GridBoundColumn();
                boundColumn.DataField = "Title";
                boundColumn.HeaderText = "Department Title";
                boundColumn.UniqueName = "Title";
                boundColumn.ItemStyle.Width = Unit.Pixel(250);
                boundColumn.HeaderStyle.Width = Unit.Pixel(150);
                
                gridActivity.MasterTableView.Columns.Add(boundColumn);
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 12 Apr Link to this post

    Hello,

    You can add vertical and horizontal scroll to the grid as demonstrated here, but there is no built-in scroll for bound columns:
    http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/scrolling/scrolling/defaultcs.aspx

    Additionally, keep in mind that it is recommended to use only HeaderStyle.Width for setting columns width. ItemStyle.Width should not be used.

    Regards,
    Pavlina
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jonathan
    Jonathan avatar
    7 posts
    Member since:
    Jan 2014

    Posted 12 Apr in reply to Pavlina Link to this post

    Need to apply it to a SINGLE bound column with large amounts of text
Back to Top