Hi,
I use NetAdvantage 2012 vol.1 and I have a xamDataPresenter as a grid with only one displayed editable column binded to string value in ObservableCollection. I have some record in the collection where value = 'ORIG CONT 12/31/2013'. Grid displays truncated value to 'ORIG CONT':
but when I click the field and go to edit mode, it displays full value available to edit:
The grid is defined as:
<igDP:XamDataPresenter Name="xamDataGridContinuityHist" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ActiveDataItem="{Binding SelectedEmployeeContinuityHistory,Mode=TwoWay}" BindToSampleData="False" DataSource="{Binding EmployeeContinuityHistories,Mode=TwoWay}" GroupByAreaLocation="None" Theme="[current]" Padding="0,0,7,0" BorderThickness="0,0,10,0" ScrollingMode="DeferredWithScrollTips" ScrollBehaviorOnListChange="PreserveRecordsInView"> <igDP:XamDataPresenter.Resources> <Style x:Key="NotesFieldStyle" TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="TextWrapping" Value="Wrap" /> <Setter Property="TextBlock.Background" Value="Brown" /> <Setter Property="Background" Value="LightSteelBlue" /> <Setter Property="AcceptsReturn" Value="True" /> <Setter Property="Selector.SelectedIndex" Value="0" /> <Setter Property="Selector.SelectedValue" Value="" /> </Style> </igDP:XamDataPresenter.Resources> <igDP:XamDataPresenter.FieldLayoutSettings> <igDP:FieldLayoutSettings AllowAddNew="True" AddNewRecordLocation="OnBottom" AllowDelete="False" AutoArrangeCells="Never" AutoGenerateFields="False" DataErrorDisplayMode="ErrorIconAndHighlight" HighlightPrimaryField="Highlight" SupportDataErrorInfo="RecordsAndCells" SelectionTypeCell="None" /> </igDP:XamDataPresenter.FieldLayoutSettings> <igDP:XamDataPresenter.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="NOTES" Width="400" Column="0" Label="Notes" Row="1"> <igDP:Field.Settings> <igDP:FieldSettings AllowEdit="True" EditorStyle="{StaticResource NotesFieldStyle}" /> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataPresenter.FieldLayouts> <igDP:XamDataPresenter.FieldSettings> <igDP:FieldSettings AllowEdit="True" CellClickAction="EnterEditModeIfAllowed" /> </igDP:XamDataPresenter.FieldSettings> <igDP:XamDataPresenter.View> <igDP:GridView> <igDP:GridView.ViewSettings> <igDP:GridViewSettings Orientation="Vertical" /> </igDP:GridView.ViewSettings> </igDP:GridView> </igDP:XamDataPresenter.View></igDP:XamDataPresenter>
I tried to create a sample project with exact the same grid and data and it works fine, i.e. displays complete value. What could be a reason of this behavior ?
Thanks,
Ed
Hello Ed,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
The issue is resolved and it looks like it was in some old build of 2012 v.1. I added new Infragistics dll to project references, then I had to refresh references for several other dlls. I.e. I added references from my local installed version instead of references located in Global Assembly Cache. After that the problem magically disappeared.
Without a sample, where this is reproduced I am not able to investigate this further for you. Since you are not able to create an isolated sample project, is it possible for you to send us your real application, where the issue is reproduced, so we can investigate this further for you.
Looking forward for your reply.
I tried to create a sample project but for some reason it works fine. The only thing I noticed that in my sample project when I enter to edit mode, full content of the field is highlighted, i.e. selected but in real project cursor just goes to the end of the string value. However both of the grids have identical settings in style for XamTextEditor:
<Setter Property="Selector.SelectedIndex" Value="0" />
<Setter Property="Selector.SelectedValue" Value="" />
Is it possible for you to send us an isolated sample project, where this is reproduced, and steps we need to follow, so we could be able to investigate this further for you?