Dear community,
I can't get the WebHierarchicalDataGrid to allow column resizing.... Sorting, moving, ... All behaviours work, but resizing does not work. Neither in FF or IE. I'm using 2010.1 SR1.
My code:
<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" Height="350px" Width="800px" AutoGenerateColumns="false" DataKeyFields="ID" Key="Order" DataMember="Order" StyleSetName="Office2007Blue"> <Columns> <ig:BoundDataField DataFieldName="Ordernummer" Key="Ordernummer" Header-Text="Order nr." Width="100px" /> <ig:BoundDataField DataFieldName="Orderdatum" Key="Orderdatum" Header-Text="Orderdatum" Width="100px" /> <ig:BoundDataField DataFieldName="Plandatum" Key="Plandatum" Header-Text="Plandatum" Width="100px" /> <ig:BoundDataField DataFieldName="Ophaaldatum" Key="Ophaaldatum" Header-Text="Ophaaldatum" Width="100px" /> <ig:BoundDataField DataFieldName="Afleverdatum" Key="Afleverdatum" Header-Text="Afleverdatum" Width="100px" /> <ig:BoundDataField DataFieldName="Aanbieder" Key="Aanbieder" Header-Text="Aanbieder" Width="350px" /> <ig:BoundDataField DataFieldName="Transporteur" Key="Transporteur" Header-Text="Transporteur" Width="350px" /> <ig:BoundDataField DataFieldName="Ontvanger" Key="Ontvanger" Header-Text="Ontvanger" Width="350px" /> <ig:BoundDataField DataFieldName="Status" Key="Status" Header-Text="Status" Width="100px" /> </Columns> <Bands> <ig:Band AutoGenerateColumns="false" Key="Orderlijn" DataMember="Orderlijn"> <Columns> <ig:TemplateDataField Key="ItemSelector"> <HeaderTemplate> <div style="text-align: center;"> <asp:CheckBox ID="headerSelection" runat="server" /> </div> </HeaderTemplate> <ItemTemplate> <div style="text-align: center;"> <asp:CheckBox ID="SelectItem" runat="server" /> </div> </ItemTemplate> </ig:TemplateDataField> <ig:BoundDataField DataFieldName="Fractie" Key="Fractie" Header-Text="Fractie" /> <ig:BoundDataField DataFieldName="Eenheid" Key="Eenheid" Header-Text="Eenheid" /> <ig:BoundDataField DataFieldName="Aangemeld" Key="Aangemeld" Header-Text="Aangemeld" /> <ig:BoundDataField DataFieldName="Opgehaald" Key="Opgehaald" Header-Text="Opgehaald" /> <ig:BoundDataField DataFieldName="Afgeverd" Key="Afgeverd" Header-Text="Afgeverd" /> <ig:BoundDataField DataFieldName="Gewicht" Key="Gewicht" Header-Text="Gewicht" /> </Columns> </ig:Band> </Bands> <Behaviors> <ig:Selection CellClickAction="Row" RowSelectType="Multiple" SelectionClientEvents-RowSelectionChanging="selecting"> </ig:Selection> <ig:ColumnResizing Enabled="true"> </ig:ColumnResizing> </Behaviors> </ig:WebHierarchicalDataGrid>
Hi,
Right now, column resizing is not officially supported for the WebHierarchicalDataGrid. It's why you cannot add if from the behaviors dialog. It should in theory work. It is possible column grouping can interfere. Also, it will not have inheritance, so you would have to define it again on a child band to have it there. If you really want this officially supported, I would suggest submitting a feature request to let us know it is desired.
regards,David Young
Hi David,
Thanks again for your answer. However, I never use the Behaviors dialog, I use the Markup editor directly, which has a ColumnResizing behavior.
I will submit a feature request for this, however I do think that it should be supported as it is included as an enableable feature.
SabbeRubbish