Hi,
We have a XamDataGrid bound to a data table - the columns are not specified in the XAML markup and is added dynamically like this
XamDataGrid1.FieldLayouts[0].Fields.Add(fieldName);
While this works for us, in some specific cases we have seen that it does not display the column values completely. E.g. if the value is E 8V2SCLF1 then we see it display on E and the remaining text is not displayed. I can try to upload a cropped image as I cannot provide the complete application's screenshot. We are on NetAdvantage Ultimate v11.2 as of now.
E8V2SCLF1 displays fine, E 8V2SCLF is also ok - just that E 8V2SCLF1 (with the space and ending with the number) is not. Similarly E 8V2SCLF2/3 etc. also have the same issue.
Any idea as to why this could be happening?
Hello Arpita,
I am just checking if there is anything else I can do for you.
Thank you for your post.
I have been further investigating your issue with our development team. The behavior that you have described is derived from something with SimpleTextBlock that the XamTextEditor used by default. What I can suggest in order to be able to implement the functionality that you are looking for in version 11.2 is to re-template the XamTextEditor to use TextBlock instead of SimpleTextBlock. You can achieve this by creating style for XamTextEditor and set its Template property. I modified the last sample application to show you how you can achieve the behavior that you want.
Please let me know if you need any further assistance on the matter.
Changing font actually affects my entire UI look and messes other things. Is there any other approach apart from this.
I also want to know that this happens only for few strings. What are the other scenarios where it can happen (what other strings) beacause we are still not able able to root cause why it happens only with these few strings.
Thanks
Arpita
Hello Aprita,
I have been looking into it. The best approach, that I can suggest is to upgrade your project to version 14.2. Also you can set the FontSize property of XamTextEditor to some size, in order to be able to achieve the functionality, that you are looking for. I tried to set this property and it works on my side with version 11.2. I modified your sample application to show you how you can implement this approach.
Is there any workaround we can apply in this version 11.2 to fix this issue. Please suggest.