The subject pretty much says all. I can't seem to find any way to get the columns in the inner-grid of a two-level hierarchical RadGrid to resize. Below is the code I'm attempting:
ASPX:
VB:
I get a good hierarchial grid, with the only exception being that the column of checkboxes that's in the ASPX will not widen and the numerous column resize attempts in the ColumnCreated function(which DOES fire correctly; the HeaderText property does change to "DescriptionA") also will not widen. Can anybody please tell me what I'm doing wrong?
Thank you for any help you may have in advance.
Patrick
ASPX:
<telerik:RadGrid ID="XLSView" runat="server" AutoGenerateColumns="True" AllowMultiRowSelection="true" Width="600px"> <MasterTableView Width="100%"> <DetailTables> <telerik:GridTableView Width="100%"> <Columns> <telerik:GridTemplateColumn UniqueName="chkDup" HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkDup" runat="server"> </asp:CheckBox> </ItemTemplate> <HeaderStyle Width="200px" /> </telerik:GridTemplateColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> <ClientSettings> <Scrolling AllowScroll="true" /> </ClientSettings></telerik:RadGrid>VB:
Protected Sub XLSView_DetailTableDataBind(sender As Object, e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles XLSView.DetailTableDataBind... Dim test As DataTable = New DataTable() test.Columns.Add("FileID")... For Each dupFile As FILE In dupFiles Dim dr As DataRow = test.NewRow() dr("FileID") = dupFile.FILEID... Next e.DetailTableView.DataSource = test------------------------------------ Protected Sub XLSView_ColumnCreated(sender As Object, e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles XLSView.ColumnCreated If e.Column.UniqueName = "Description" Then Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) boundColumn.HeaderText = "DescriptionA" boundColumn.ItemStyle.Width = 600 boundColumn.HeaderStyle.Width = 600 boundColumn.FooterStyle.Width = 600 boundColumn.FilterControlWidth = 600 End If End SubI get a good hierarchial grid, with the only exception being that the column of checkboxes that's in the ASPX will not widen and the numerous column resize attempts in the ColumnCreated function(which DOES fire correctly; the HeaderText property does change to "DescriptionA") also will not widen. Can anybody please tell me what I'm doing wrong?
Thank you for any help you may have in advance.
Patrick