Hello, I have posted this in other forum, but I think this is the good place. I have a XamGrid with many columns grouped. After updating to the last version of your netAdvantage for silverlight, I have noticed that each time I choose a cell the scroll moves automatically and sets the selected column in the first place of the scroll. My users have complaint about this, because to change a value of the cell, when they click on the desired cell, it is moved automatically, and they get messed up with the table and cells they want to change. Any Idea of how to avoid this behavior?
<ig:XamGrid x:Name="dataGrid" Grid.Row="1" Height="Auto" ActiveItem="{Binding SelectedItem, Mode=TwoWay}" CellExitedEditMode="dataGrid_CellExitedEditMode" CellDoubleClicked="dataGrid_CellDoubleClicked" ItemsSource="{Binding modelSource, Mode=TwoWay}" AutoGenerateColumns="False" Style="{StaticResource XamGridStyle}" CellStyle="{StaticResource CellControlStyle}" HeaderStyle="{StaticResource HeaderCellControlStyle}" FillerColumnSettings="{StaticResource FillerColumnSettings}" DataContextChanged="dataGrid_DataContextChanged"> <ig:XamGrid.FixedColumnSettings> <ig:FixedColumnSettings AllowFixedColumns="Disabled"></ig:FixedColumnSettings> </ig:XamGrid.FixedColumnSettings>
...
Thank you
Hello Mekoloko,
Thank you for contacting Infragistics!
I put your markup into a sample in order to try and reproduce the issue you are having, however my sample only scrolls when the item in question is displayed beyond the edge of the visible area; I believe that your issue may have something to do with your styles being applied. Can you provide more details on the four styles you are using in your markup, that I might better locate the source of your issue?
Sincerely,JonInfragistics, Inc.http://ko.infragistics.com/help
Hello Jon,
I have erased all the styles and I get the same problem with an "ugly" grid. lol
By the way, I put a piece of the structure of the grid. The following piece of code shows, a fixed column at right with the name of some people. Next to it there will be a grouped column with the Month of the year and below this 3 columns, one for the earnings, another for debts and a third one for the type of money (Euro, dollars...) This grouped columns would have the same structure until it displays the 12 months of the year.
<ig:XamGrid.Columns> <ig:TextColumn Key="Name" IsReadOnly="True" IsHideable="False" IsSummable="False" IsFixed="Left" > <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding DataContext.LocalizedResources.Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ig:XamGrid}}" /> </DataTemplate> </ig:TextColumn.HeaderTemplate> <ig:TextColumn.SummaryColumnSettings> <ig:SummaryColumnSettings> <ig:SummaryColumnSettings.SummaryOperands> <ig:CountSummaryOperand IsApplied="True" FormatString="Total" /> </ig:SummaryColumnSettings.SummaryOperands> </ig:SummaryColumnSettings> </ig:TextColumn.SummaryColumnSettings> </ig:TextColumn> <ig:GroupColumn Key="January" HeaderText="{Binding Month}" Tag="January" Visibility="{Binding EmissionsVisibility, Mode=TwoWay}" IsHideable="False"> <ig:GroupColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding DataContext.LocalizedResources.ColumnJanuary, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ig:XamGrid}}" /> </DataTemplate> </ig:GroupColumn.HeaderTemplate> <ig:GroupColumn.Columns> <ig:TextColumn Key="MoneyEarn1" Tag="MoneyEarn1" FormatString="{}{0:n0}" EditorValueConverter="{StaticResource DecimalToIntFormatConverter}" HorizontalContentAlignment="Right" AllowEditingValidation="True" IsHideable="True" IsSummable="False"> <ig:TextColumn.SummaryColumnSettings> <ig:SummaryColumnSettings> <ig:SummaryColumnSettings.SummaryOperands> <ig:SumSummaryOperand IsApplied="True" FormatString="{}{0:n0}" /> </ig:SummaryColumnSettings.SummaryOperands> </ig:SummaryColumnSettings> </ig:TextColumn.SummaryColumnSettings> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding DataContext.LocalizedResources.Debts,
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ig:XamGrid}}" /> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn> <ig:TextColumn Key="Debts1" Tag="Debts1" FormatString="{}{0:n0}" EditorValueConverter="{StaticResource DecimalToIntFormatConverter}" HorizontalContentAlignment="Right" IsHideable="True" IsSummable="False"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding DataContext.LocalizedResources.Debts, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ig:XamGrid}}" /> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn> <ig:TextColumn Key="MoneyTyp1e" Tag="MoneyType1" IsReadOnly="True" HorizontalContentAlignment="Right" IsSummable="False"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding DataContext.LocalizedResources.MoneyType, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ig:XamGrid}}" /> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn> </ig:GroupColumn.Columns> </ig:GroupColumn>
Yes, I've got the last one, just bought some weeks ago
HI,
Did applying the latest service release resolve your issue?
Sincerely,
Matt
Developer Support Engineer
Unfortunately... I continue with the same problem
Hello mekoloko,
Did you got any solution on this issue? I'm experiencing the same with 60 columns.
Can you modify the sample in this thread to replicate this issue.
If you can replicate this issue, please attach the modified sample to this thread.