Simon Channell
Top achievements
Rank 1
Simon Channell
asked on 29 Apr 2013, 02:59 PM
I've set up a grid with vertical headers (see attached screenshot) but I can't resize the column width.
Should I be changing it in code or in the style sheet?
Should I be changing it in code or in the style sheet?
3 Answers, 1 is accepted
0
Hello Simon,
You will need to enable the AllowColumnResize property. Please check out the following demo for an actual example:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx
Hope this helps.
Greetings,
Eyup
the Telerik team
You will need to enable the AllowColumnResize property. Please check out the following demo for an actual example:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx
Hope this helps.
Greetings,
Eyup
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Simon Channell
Top achievements
Rank 1
answered on 07 May 2013, 09:02 AM
I have found that if I enable the "Allow columnResize" property I get the strange effect you can see in the attached screenshot.
Below is the code for intialising the Grid which is performed in the "page_init" (This gives the headings which look ok)
Below is the code for intialising the Grid which is performed in the "page_init" (This gives the headings which look ok)
RadGrid1.ID = "RadGrid1" RadGrid1.EnableEmbeddedSkins = "False" RadGrid1.Width = Unit.Percentage(100) RadGrid1.PageSize = 5 RadGrid1.AllowPaging = True RadGrid1.AllowSorting = False RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric RadGrid1.AutoGenerateColumns = False RadGrid1.MasterTableView.EnableColumnsViewState = True RadGrid1.MasterTableView.PageSize = 15 RadGrid1.ClientSettings.Resizing.AllowColumnResize = False RadGrid1.ClientSettings.Resizing.AllowResizeToFit = False RadGrid1.ClientSettings.Resizing.EnableRealTimeResize = False RadGrid1.ClientSettings.Resizing.ResizeGridOnColumnResize = FalseThis code is used to create the columns
For x = 1 To numcols colnum = x column1 = New GridBoundColumn column1.UniqueName = "column" + x.ToString column1.DataField = "mark" + x.ToString If colnum Mod 2 = 0 Then column1.ItemStyle.CssClass = "csscol2" column1.HeaderStyle.CssClass = "cssHead3" Else column1.ItemStyle.CssClass = "csscol1" column1.HeaderStyle.CssClass = "cssHead" End If column1.ItemStyle.Width = 300 / numcols column1.HeaderStyle.Width = 300 / numcols column1.HeaderStyle.Height = 100 column1.HeaderText = "Assessment " + x.ToString RadGrid1.MasterTableView.Columns.Add(column1) Next
0
Hi Simon,
I am afraid we are not able to replicate the issue locally. Please provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.
Regards,
Eyup
the Telerik team
I am afraid we are not able to replicate the issue locally. Please provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.
Regards,
Eyup
the Telerik team
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
