This is a migrated thread and some comments may be shown as answers.

How do add Vertical and Horizontal scrolling to the bound column

2 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Iron
Veteran
Jonathan asked on 09 Apr 2016, 01:39 PM
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 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Apr 2016, 11:16 AM
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.
0
Jonathan
Top achievements
Rank 1
Iron
Veteran
answered on 12 Apr 2016, 11:42 AM
Need to apply it to a SINGLE bound column with large amounts of text
Tags
Grid
Asked by
Jonathan
Top achievements
Rank 1
Iron
Veteran
Answers by
Pavlina
Telerik team
Jonathan
Top achievements
Rank 1
Iron
Veteran
Share this question
or