Hi,
I create a RadGrid programmatically. Then I add it to a placeholder control of my usercontrol. It is displayed. Now I like to resize and to reorder the columns. But resize doesn't work. Reorder does. What is wrong?
Here are my settings for my grid:
I create a RadGrid programmatically. Then I add it to a placeholder control of my usercontrol. It is displayed. Now I like to resize and to reorder the columns. But resize doesn't work. Reorder does. What is wrong?
Here are my settings for my grid:
| Dim rGrid As New Telerik.Web.UI.RadGrid |
| Dim AddButton As New GridButtonColumn |
| Dim DeleteButton As New GridButtonColumn |
| Dim Countries As New GridBoundColumn |
| rGrid.MasterTableView.TableLayout = GridTableLayout.Fixed |
| rGrid.ClientSettings.Scrolling.AllowScroll = True |
| rGrid.ClientSettings.Scrolling.UseStaticHeaders = True |
| rGrid.Height = 410 |
| rGrid.AutoGenerateColumns = False |
| rGrid.AllowSorting = True |
| rGrid.AllowPaging = True |
| rGrid.HeaderStyle.HorizontalAlign = HorizontalAlign.Center |
| rGrid.ClientSettings.AllowColumnsReorder = True |
| rGrid.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder |
| rGrid.PageSize = 10 |
| rGrid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric |
| rGrid.MasterTableView.Columns.Add(AddButton) |
| rGrid.MasterTableView.Columns.Add(DeleteButton) |
| rGrid.MasterTableView.Columns.Add(Countries) |
| AddButton.HeaderStyle.Width = 25 |
| DeleteButton.HeaderStyle.Width = 25 |
| Countries.HeaderStyle.Width = 80 |
| rGrid.EnableEmbeddedSkins = False |
| rGrid.ClientSettings.Selecting.AllowRowSelect = True |
| rGrid.ClientSettings.Resizing.AllowColumnResize = True |
| rGrid.ClientSettings.Resizing.EnableRealTimeResize = True |
| rGrid.ClientSettings.Resizing.ResizeGridOnColumnResize = True |
