Hi,
I am trying to achieve relative column width so that Grid is properly dislayed in different resolutions.
On using Width="0.1*" in the below column getting error.
<telerik:GridViewDataColumn HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}"
TextAlignment="Center"
HeaderTextAlignment="Center"
Width=".1*"
UniqueName="ID"
Header="ContractID"
DataMemberBinding="{Binding ID}">
<i:Interaction.Behaviors> <common:ClosePopupOnApplyFilterBehavior /> </i:Interaction.Behaviors>
</telerik:GridViewDataColumn>
Message: System.InvalidOperationException: UIElement.Measure(availableSize) cannot be called with NaN values in availableSize.
at System.Windows.UIElement.Measure(Size availableSize)
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureChild(UIElement child, Size constraint)
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateChild(IItemContainerGenerator generator, Size constraint, GridViewColumn column, Int32& childIndex, Size& childSize)
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GenerateChild(IItemContainerGenerator generator, Size constraint, GridViewColumn column, IDisposable& generatorState, Int32& childIndex, Size& childSize)
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.DetermineRealizedColumnsBlockList(Size constraint)
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
Any pointers will be helpful.
Thanks,
Paresh
