Hello,
While using XamDataGrid control with wrapping for show multiline text, it´s works perfect, unless in the use of "-" case. If the text have a "-", the wrapping cut it at the "-".
For example: "The car is in Villa-leoz, near Valladolid", the control cut the text as this "The car is in Villa".
The xaml:
<igDP:Field Name="Text" Width="500*"> <igDP:Field.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource CommentCellValuePresenterStyle}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igE:XamTextEditor}"> <Setter Property="TextWrapping" Value="Wrap" /> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
Hello Jesus,
Thank you for your post.
I have been investigating into this a bit, and so far I have not been able to reproduce this issue you are seeing, with it being cut-off. Using your text example, if the word "leoz" does not fit, it goes to the next line and the text continues. When I exit the cell, the cell resizes to accommodate the text that is inside of it. I am currently using version 14.2.20142.2081 in Infragistics for WPF 2014 Volume 2. Is this the same version you are using?
From your code above, I am also wondering what is happening in the CellValuePresenter style that you are applying, as this could have a dramatic effect on what you are seeing. Would it be possible for you to please provide the XAML of the CellValuePresenter style that you are applying to this Field?
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hello Andrew,
We are using WPF 2014 Volume 1.
As you says, text accommodate ok, the problem is only with the "-" character. It cuts the text accommodated when cell resize.
I have attach the complete xaml for the XamDataGrid.
Thanks!
I have reproduced a cut-off in the XamDataGrid after entering an input that has a hyphen character in it, but I am unsure if we are seeing the same error here or not, as the cut-off is not at the hyphen for me. It appears that this issue is being caused by the TextOptions.TextFormattingMode setter that you have in your "CommentCellValuePresenterStyle," but there is a possibility that we are finding different errors here.
Would it be possible for you to please try your application again, but eliminate the TextOptions.TextFormattingMode setter in your CommentCellValuePresenterStyle to see if this prevents the problem, and report back with your findings? This will help for me to know that we are seeing the same issue if it does prevent it, and so we can proceed from that point.
Just checking in, did you still require assistance on this matter?
Your solution works ok for us. Thanks a lot!
Regards,
Jesús Jaraíz