I have put this in the pre_render method like advised but the columns do not change size. Any help would be greatly appreciated.
5 Answers, 1 is accepted
Try the following code snippet to programmatically set column width on RadGrid columns.
I believe the following information will be useful for you:
All the best,
the Telerik team
is no longer valid.
Indeed the forum thread is no longer available, please excuse us for the inconvenience caused.
Regarding the issue with the column width - the most common reason for a column to appear a lot wider than expected is that you have set explicit pixel widths to all columns, but the RadGrid control is wider than the sum of all column widths. In this case you should leave at least one column with no width. Note that setting RadGrid column widths should be done only with HeaderStyle.Width
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.