Hi,
In november 2009 I asked a question about the MinimumWidth property on a column (http://forums.infragistics.com/forums/t/33479.aspx). When setting a columns width to star, the MinimumWidth property is ignored, so the star column can disappear (become 0 pixels), even though the MinimumWidth is set.
I see the problem has been somewhat solved, but here's a scenario where the problem still exists:
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:grid="clr-namespace:Infragistics.Controls.Grids;assembly=InfragisticsSL4.Controls.Grids.XamGrid.v10.2"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<grid:XamGrid x:Name="grid"
Width="200">
<grid:XamGrid.Columns>
<grid:TextColumn Key="a"
Width="300"/>
<grid:TextColumn Key="b"
MinimumWidth="200"
Width="*"/>
</grid:XamGrid.Columns>
</grid:XamGrid>
</Grid>
</UserControl>
Arjen
I reproduced your issue here and will have an issue ticket entered for the issue.
Arjen,
Here is the reference number of your support ticket: CAS-49165-8YKH2H. I will write up this issue in our system so it can be evaluated by our development team.
Was this ever fixed? I'm setting a minimum width property and it is being ignored. I'm trying to prevent the column widths from going to 0, since then there is no way to get the columns to show again (other than resetting all the user customizations).
Hello,
I have created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
Thanks. I got it working. The problem was the PersistenceManager was override the changed settings in the code with the older settings that were saved. I've tried setting the PersistenceManager to just save/restore the user configurable options, but it blows up when I try to restore that way (stack overflow - using onlyspecifiedsettings). So I continue to use AllButIgnored, and try to ignore ones that I know screw things up, plus have some hacks to allow new columns to show up and restore some column settings that don't seem accessible in the Ignore settings.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.