Unplanned
Last Updated: 17 May 2023 12:37 by Vladimir
Vladimir
Created on: 17 May 2023 12:37
Category: GridView
Type: Feature Request
1
GridView: Improve column resizing to allow for columns on the right of a * sized column to be resized

In the following scenario:

<telerik:RadGridView x:Name="clubsGrid" ItemsSource="{Binding Foos}" AutoGenerateColumns="False">
	<telerik:RadGridView.Columns>
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo1}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo2}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo3}" Width="*" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo4}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo5}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo6}" MinWidth="100" />
	</telerik:RadGridView.Columns>
</telerik:RadGridView>

<DataGrid ItemsSource="{Binding Foos}" AutoGenerateColumns="False" Grid.Row="1">
	<DataGrid.Columns>
		<DataGridTextColumn Binding="{Binding Foo1}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo2}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo3}" Width="*" />
		<DataGridTextColumn Binding="{Binding Foo4}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo5}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo6}" MinWidth="100" />
	</DataGrid.Columns>
</DataGrid>

in the native DataGrid after the Width of Foo4 column is increased towards Foo3, then the Width of Foo5/Foo6 columns can also be increased. We can implement similar behavior in the RadGridView as well. 

 

0 comments