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

Column width problem

3 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 14 Feb 2014, 06:42 PM
I am having a problem with my radgrid. When I set a column width manually (ItemStyle-Width="300px" HeaderStyle-Width="300px") I don't get the horizontal scrollbar and my grid crushes all the other columns to fit the grid with. When I remove the width on the one column everything works fine and all the columns are the basic 125px width and I have a long horizontal scrollbar.

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 14 Feb 2014, 07:00 PM
Sorry for the multiple posts. I've been getting the 'Oops something went wrong' screen and my screenshot .png file isn't uploading.
0
Shinu
Top achievements
Rank 2
answered on 15 Feb 2014, 05:07 AM
Hi Richard,

Note that you should set column widths through HeaderStyle-Width property only. It is not recommended to use ItemStyle-Width. In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid. Make necessary changes and see if the issue is solved else provide your code snippet.

Thanks,
Shinu
0
Pavlina
Telerik team
answered on 17 Feb 2014, 09:59 AM
Hi,

The other posts opened on the same subject are already deleted. In future please avoid posting the same question multiple times.

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or