Hello,
BringCellIntoView does not scroll correctly to the cell which is not visible (will be visible when you scroll to the right) when the datagrid is loaded. BringCellIntoView works correctly, once you manually scroll from left to the right in the grid. As a workaround, right now we are scrolling from left to right in the code behind but obviously this is not an elegant solution. We would like to know if this is a known issue or not? Do XamDataGrid lazily initializes the cells in the back-end so that BringCellIntoView does not scroll to the right cell in the first attempt?
We are using the latest service release of 2012.12.
Thank you.
Hello Murat,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for your feedback. I have modified my sample application with the latest details. I added the ‘XamDataGridStyle’ and applied the editor styles and I cannot still reproduce the issue.
Could you please try to modify the sample application(DataGridGroupingModified3.zip) and attach the modified version ?
Looking forward to hearing from you.
It behaves same when we have 10 records or 3000. We have around 36 columns. This is the style that we use:
<Style x:Key="XamDataGridStyle" TargetType="{x:Type igDP:XamDataGrid}"> <Setter Property="Theme" Value="Office2010Blue"/> </Style>
From 36 columns 34 of them are strings 2 of them are datetime. We are using a CollectionView as the data source. Our XamGrid resides in a Grid which is a separate UserControl (not a window).
As most of the data is strings we use couple of masks to do styling on some fields such as:
<Style x:Key="CurrencyMask" TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="{}{currency:-12.2}"/> </Style>
<Style x:Key="LongDateTimeStyle" TargetType="{x:Type igEditors:XamDateTimeEditor}"> <Setter Property="Mask" Value="{}{date} {longtime}"/> </Style>
<igDP:Field Name="Value" > <igDP:Field.Settings> <igDP:FieldSettings EditorStyle="{StaticResource CurrencyMask}" /> </igDP:Field.Settings> </igDP:Field>
<igDP:Field Name="Date"> <igDP:Field.Settings> <igDP:FieldSettings AllowEdit="False" EditorStyle="{StaticResource LongDateTimeStyle}"/> </igDP:Field.Settings> </igDP:Field>
That's all I can provide actually for now.
Thank you for your feedback. This issue is not known and I need to reproduce it in order to provide you with more accurate assistance. Please tell me how many records you have and the count of the fields. It would be great to tell me the type of each field and the type of your underlying data(List,ObservableCollection,etc.). Also please provide me with the style for the XamDataGrid that you have applied :
Style="{DynamicResource XamDataGridStyle}"
You are right. The project that you have sent does not have that particular issue.
I found one other thing which might help to investigate this issue further. We are having this issue only when 'Width' property is set to 'Auto' for the grid. It works perfectly when we do not use auto width. I know the project you sent also uses 'Width=Auto' but this might be related to the data that we use. And sadly I cannot share the data.
Please let me know if you can investigate this further.