Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Multi line Column Dragging: Second line not moving when a column header is dragged to a new position
posted

I have a xamldatagrid with two lines in each row. If i drag a column to a new position, only the header and data in the first row is moved, data in the second row stays in the previous position as though no dragging have happened. Pasted below is the xaml. It is not the complete xaml, but i think this should be good enough to reproduce the issue. I can send you the complete xaml if needed.

I am also attaching the screen shot of the issue showing the screen before and after dragging the column. In addition to that, an empty row (space) is introduced between the first and second rows in one of the columns.

Any help is greatly appreciated

<igDP:XamDataGrid

Name="BucketGrid"
Theme="Office2k7Black"
Background="Transparent"
GroupByAreaLocation="None"
AutoFit="true"
Style="{DynamicResource PerformantGrid}"
DataSource="{Binding Buckets}">
<igDP:XamDataGrid.Resources>
<ResourceDictionary>
<Style TargetType="{x:Type igDP:LabelPresenter}" BasedOn="{x:Static Themes:DataPresenterOffice2k7Black.LabelPresenter}">
<Style.Triggers>
<Trigger Property="SortStatus" Value="Ascending">
<Setter Property="Foreground" Value="#ffff00"/>
</Trigger>
<Trigger Property="SortStatus" Value="Descending">
<Setter Property="Foreground" Value="#ffff00"/>
</Trigger>
</Style.Triggers>
</Style>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary
Source="pack://application:,,,/GLM.Infrastructure.View;component/Themes/XamDataGrid.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

</igDP:XamDataGrid.Resources>

<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings
HeaderPrefixAreaDisplayMode="FieldChooserButton"
AllowAddNew="False"
AutoArrangeCells="Never"
SelectionTypeRecord="Single"
AllowDelete="False"
AutoGenerateFields="False"
RecordSelectorLocation="None"
HighlightAlternateRecords="True"
ReevaluateFiltersOnDataChange="True"
SupportDataErrorInfo="RecordsAndCells"
DataErrorDisplayMode="ErrorIconAndHighlight"
DataRecordCellAreaStyle="{StaticResource HighlightedDataRecordCellAreaStyle}"
ExpansionIndicatorDisplayMode="CheckOnDisplay"
HeaderPlacement="OnTopOnly"
HeaderPlacementInGroupBy="OnTopOnly"
CopyFieldLabelsToClipboard="True"
AllowClipboardOperations="All">
</igDP:FieldLayoutSettings>
</igDP:XamDataGrid.FieldLayoutSettings>

<!--Width="Auto"
AllowResize="True"-->

<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings
AllowSummaries="True"
Width="Auto"
SummaryDisplayArea="TopFixed"
ExpandableFieldRecordExpansionMode="ExpandAlways"
ExpandableFieldRecordHeaderDisplayMode="NeverDisplayHeader"
LabelTextWrapping="NoWrap"
CellClickAction="SelectCell"
AllowEdit="False"
AllowFixing="No"
AllowRecordFiltering="True"
LabelClickAction="SortByOneFieldOnly"
CellValuePresenterStyle="{StaticResource CellValuePresenterStyle}"/>
</igDP:XamDataGrid.FieldSettings>

<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout IsDefault="True">
<igDP:FieldLayout.SortedFields>
<igDP:FieldSortDescription FieldName="TotalUtilizationReject" Direction="Descending" />
</igDP:FieldLayout.SortedFields>

<igDP:FieldLayout.Fields>
<igDP:UnboundField Row="0" Column="0" Name="TotalUtilizationReject" BindingPath="TotalUtilizationReject" Label="TotalUtilization" Visibility="Collapsed">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" />
</igDP:Field.Settings>
</igDP:UnboundField>
<igDP:UnboundField Row="0" Column="1" Name="Name" BindingPath="message" Label="Bucket Name">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" />
</igDP:Field.Settings>
</igDP:UnboundField>
<igDP:UnboundField Row="0" Column="2" Name="BucketId" BindingPath="limitId" Label="Bucket Id" Visibility="Visible">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" />
</igDP:Field.Settings>
</igDP:UnboundField>

<igDP:UnboundField Row="0" Column="3" BindingPath="OrderCountUtilizationReject" Tag="Format=N0,CheckLevel=Reject" Name="OrderCount" Label="OrderCount">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellValuePresenterStyle="{StaticResource DynamicUtilizationFieldCellStyle}">
</igDP:FieldSettings>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="OrderCountcurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>
<igDP:UnboundField Row="1" Column="3" BindingPath="OrderCountmaxValue" Tag="Format=N0,CheckLevel=Reject" Name="OrderCountMaxValue" Label="{x:Null}">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellContentAlignment="ValueOnly" AllowRecordFiltering ="False" CellValuePresenterStyle="{StaticResource HighWaterMarkCellStyle}"/>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="OrderCountcurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>

<igDP:UnboundField Row="0" Column="4" Name="NetOrderQty" Tag="Format=N0,CheckLevel=Reject" BindingPath="NetOrderQtyUtilizationReject" Label="NetOrderQuantity">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellValuePresenterStyle="{StaticResource DynamicUtilizationFieldCellStyle}">
</igDP:FieldSettings>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="NetOrderQtycurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>
<igDP:UnboundField Row="1" Column="4" BindingPath="NetOrderQtymaxValue" Tag="Format=N0,CheckLevel=Reject" Name="NetOrderQtyMaxValue" Label="{x:Null}">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellContentAlignment="ValueOnly" AllowRecordFiltering ="False" CellValuePresenterStyle="{StaticResource HighWaterMarkCellStyle}"/>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="NetOrderQtycurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>

<igDP:UnboundField Row="0" Column="5" Name="GrossOrderQty" Tag="Format=N0,CheckLevel=Reject" BindingPath="GrossOrderQtyUtilizationReject" Label="GrossOrderQuantity">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellValuePresenterStyle="{StaticResource DynamicUtilizationFieldCellStyle}">
</igDP:FieldSettings>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="GrossOrderQtycurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>
<igDP:UnboundField Row="1" Column="5" BindingPath="GrossOrderQtymaxValue" Tag="Format=N0,CheckLevel=Reject" Name="GrossOrderQtyMaxValue" Label="{x:Null}">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellContentAlignment="ValueOnly" AllowRecordFiltering ="False" CellValuePresenterStyle="{StaticResource HighWaterMarkCellStyle}"/>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="GrossOrderQtycurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>

<igDP:UnboundField Row="0" Column="6" Name="NetNotionalValue" BindingPath="NetNotionalValueUtilizationReject" Label="NetNotionalValue">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellValuePresenterStyle="{StaticResource DynamicUtilizationFieldCellStyle}">
</igDP:FieldSettings>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="NetNotionalValuecurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>
<igDP:UnboundField Row="1" Column="6" BindingPath="NetNotionalValuemaxValue" Tag="CheckLevel=Reject" Name="NetNotionalValueMaxValue" Label="{x:Null}">
<igDP:Field.Settings>
<igDP:FieldSettings AllowSummaries="False" CellContentAlignment="ValueOnly" AllowRecordFiltering ="False" CellValuePresenterStyle="{StaticResource HighWaterMarkCellStyle}"/>
</igDP:Field.Settings>
<igDP:Field.Visibility>
<MultiBinding Converter="{StaticResource LimitFieldVisibilityConverter}" ConverterParameter="NetNotionalValuecurrValue">
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="." />
<Binding Source="{StaticResource DATA_BucketViewModel}" Path="FieldVisibilityChanged" />
</MultiBinding>
</igDP:Field.Visibility>
</igDP:UnboundField>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>

Thanks

Shahin

Parents Reply Children
No Data