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
35
Data disappearing from cells when scrolling through XamDataGrid
posted

Hi Team,

We have a Xamdatagrid with around 20 columns which are editable and virtualization is enabled on the grid , we are able to load and edit the data without any issues .

But when we use the grid’s scrollbar to view the records , the data from some of the columns (specifically columns which use XamMultiColumnCombo)  are disappearing as we scroll .

We have tried to set the RecordContainerGenerationMode to lazyload or preload which solves the issue , but has significant performance impact .So we can't go with this solution.

This is happening specifically on the cells which use XamMultiColumnCombo editor , the selected item is getting triggered on the combo when we use the scrollbar on the xamdatagrid. 

Any help to resolve this issue is greatly appreciated.

Current version of IG : 14.1

Here is the snippet of the column in which we are noticing the above issue,

<dataPresenter:UnboundField Label="Order Placer" Visibility="{Binding Source={StaticResource Proxy}, Path=Data.ShowCol, Converter={StaticResource BoolToCollapseVisibilityConverter}}">
<dataPresenter:Field.Settings>
<dataPresenter:FieldSettings AllowEdit="True" LabelTextAlignment="Center" LabelTextWrapping="Wrap" Width="140"
CellValuePresenterStyle="{StaticResource EditableCellValuePresenterStyle}">

<dataPresenter:FieldSettings.EditorStyle>
<Style TargetType="{x:Type editors:XamTextEditor}">

<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type editors:XamTextEditor}">
<Grid IsEnabled="{Binding DataItem.IsEnabled}">

<StackPanel DataContext="{Binding DataItem.DsViewModel}">
<ig:XamMultiColumnComboEditor
x:Name="TestCombo"
AutoGenerateColumns="False"
DropDownButtonDisplayMode="Always"
SelectedItemsResetButtonVisibility="Collapsed"
ItemsSource="{Binding Orders}"
DisplayMemberPath="Name"
SelectedItem="{Binding SelectedOrder, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
FilterMode="FilterOnAllColumns"
MinDropDownWidth="320"
>
<ig:XamMultiColumnComboEditor.Columns>
<ig:TextComboColumn Key="Name"/>

</ig:XamMultiColumnComboEditor.Columns>
</ig:XamMultiColumnComboEditor>
</StackPanel>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="EditTemplate">
<Setter.Value>
<ControlTemplate TargetType="{x:Type editors:XamTextEditor}">
<Grid IsEnabled="{Binding DataItem.IsEnabled}">
<StackPanel DataContext="{Binding DataItem.DsViewModel}">
<ig:XamMultiColumnComboEditor
x:Name="OrderPlacerCombo"
AutoGenerateColumns="False"
DropDownButtonDisplayMode="Always"
SelectedItemsResetButtonVisibility="Collapsed"
ItemsSource="{Binding Orders}"
DisplayMemberPath="Name"
SelectedItem="{Binding SelectedOrder, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
FilterMode="FilterOnAllColumns"
MinDropDownWidth="320"
>
<ig:XamMultiColumnComboEditor.Columns>
<ig:TextComboColumn Key="Name"/>

</ig:XamMultiColumnComboEditor.Columns>
</ig:XamMultiColumnComboEditor>
</StackPanel>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</dataPresenter:FieldSettings.EditorStyle>
</dataPresenter:FieldSettings>
</dataPresenter:Field.Settings>
</dataPresenter:UnboundField>

Parents Reply Children