We are using an UltraGrid with multiple columns to display some HTML encoded text. We create UltraGridRows that contain text and image (icon) data. In one particular case, one of our clients is seeing a space character disappear from the following text:
<font><b>CYANOCOBALAMIN&edsp;oral</b></font> - &edsp;give&edsp;100&edsp;MCG,&edsp;25-Jan-2017<br/><img data="..." Align =\"bottom\" />
As you can see, we're using &edsp; to encode the space characters. I have also removed the image data from the text for brevity. The spaces work fine for all other instances, but the space between "CYANOCOBALAMIN" and "oral", near the start of the HTML text, is not displayed. So, the text we see on the screen is "CYANOCOBALAMINoral". All the other spaces in the above text are displayed correctly. Could this be some region/language setting? We cannot reproduce this in our own environment.
Hello Chris,
Using the provided string, I was not able to reproduce this on Windows 10 x64. I also checked what we are doing internally. What we are doing is simply replace “edsp” with an empty string – “ “. What is more strange is you said it is not show correctly only the first occurrence of &edsp; and this is happening only on a single client machine. Is it possible to provide some additional information about this specific machine like:
Please collect this data and send it back to me, so I can try to reproduce this behavior.
Looking forward to your reply.
It's Infragistics4.Win.UltraWinGrid.v11.2 (File version 11.2.20112.1010) that they're running. Their region settings are standard (US English). I will find out the Windows version they're on.
Hi Chris,
Thank you for your feedback.
I have tested this behavior against same version, 11.2.20112.1010, and was not able to reproduce this issue. I performed my test on Windows 10 x64. I will wait for you to check the Windows version your customer is using. One more questions – is this issue appears on many of your clients machines, or it is isolated to only one machine?
Attached is the sample project I used to test this behavior for your reference.
The client is using Windows 7 Enterprise. They claim it occurs on multiple machines.
I have tested this on Windows 7 against same Infragistics version – 11.2.20112.1010. I was not able to reproduce this issue. Attached is a small video I recorded during my test.
As I am not able to reproduce this at my side there is not much I can do about it. As I wrote you what we are doing internally is simply using the Replace method of the string to change ‘&edsp’ with a single space. I do not see anything in our code, which may lead to this issue. In addition, you said all other spaces was shown correctly. What comes to my mind is if there is any possibility this particular empty space was erased in some way? Can you log the value of the grid cell and check this?
Someone on our side has reproduced it. It occurred when running our application on a VM, using Remote Desktop to access said VM. It seems to have something to do with the upper case characters before the space. Attached is an example image that shows in which cases the space is getting removed.
I have tested this behavior on a virtual machine while was logged via remote desktop and was unable to reproduce this behavior. Attached is a video I recorded during my test.
Please note that if your application is running correctly at local machine and you are able to reproduce this only on remote desktop this clearly shows that there is an issue in the way information is transferred between remote desktop and your local machine. Depending on the type of Virtual Machine you are using as well as on the type of the remote desktop client this issue may appear or not. However, this is more or less issue in the remote desktop client and not an issue in our controls, as long as you are not able to reproduce this on local machine. As this is not among the supported scenarios I can suggest you to try different remote desktop client or ask your remote desktop provider to check why this issue appears.
Thank you for using Infragistics Controls.