hi
I use ultratexteditor. when I input it righttoleft character and digit together, show me:
12345الف
all digit in left and alphabet in right
how I do fix it?
Hello Fatemeh,
Thank you for posting in our forums!
I have tried to reproduce your issue on my side, and I am not sure that I am seeing issue here. I’ve tested Infragistics UltraTextEditor and standard MS TextBox and both components works on the same way. When you type successively “الف12345” the result you expect “12345الف”. The numbers are not in the opposite order of the typing, since they are in decimal notation, which meant that the position of the digit determines the value, changing the order of the digits in the number changes its value. So if this is the issue, it is expected behavior. Please let me know if you have any further questions or if I misunderstood you.
when I typed
23الف12
show me
Can you please give me more information about the keyboard input language, the operating system and its regional settings, the Infragistics product version (with the exact service release) and Visual Studio you are reproducing the issue with?
I have tested your issue on Windows 8.1 with Infragistics 14.1 and Visual Studio 2012 on UltraTextEditor, UltraFormattedTextEditor and Microsoft TextBox using Persian keyboard and still I am not able to reproduce it. You can see attached archive file on the bottom of my post, where you can find my project sample, along with video related to the behavior on my machine. It is possible this to be an issue in some of our old version, so could you please let me know if you have tested this with the latest Infragistics 14.1 components.
I am waiting for your response.
hi yes I tested this with the Infragistics v11.1
but when I tested with Infragistics 14 and set righttoleft Property to yes,
12الف23
shown correctly:
my text shown left to right
for example:
بانک:
shown
but I set righttoleft Property to no
my text is rghttoleft and SHown
but
showon
الف1223
I have tested my issue on Windows 8 with Infragistics 14.1 and Visual Studio 2010 on UltraTextEditor
keyboard input language is persian
Thank you for the provided information!
Based on your detailed explanation I managed to reproduce your issue, since I changed the UltraTextEditor`s text typing direction from left to right. The issue escalates only when the input text starts with digits and you exits of edit mode. The number of the starting digits is irrelevant, after the UltraTextEditor`s edit mode is completed, they all move to the left side of the text. By default, the UltraTextEditor exits edit mode when it loses the input focus. The AlwaysInEditMode property, when set to true, prevents the control from exiting edit mode when it loses the input focus.
In order to use always the edit mode of the UltraTextEditor, in design time click on the UltraTextEditor control, look for the Properties window, on top of the list is the property AlwaysInEditMode and set it to true. Using this approach will allow you to accomplish “what you see is what you get” behavior.
I am waiting for your feedback.
hi thanks
this issue fixed by AlwaysInEditMode = true
but if this text insert into cells of Infragistics.Win.UltraWinGrid.UltraGrid
text shown not correctly:
When the cell is not in edit mode, the UltraGrid draws the text using GDI+, which is what Microsoft DotNet uses. When the cell goes into edit mode, it is showing an inner TextBox control which uses GDI. There is no way to force the inner TextBox to use GDI+, but alternatively you can set up the UltraGrid to use GDI. As older graphic device interface, GDI is a bit slower than GDI+ but you have to fill the UltraGrid with more complex data, in order to notice the difference. For further reference about what is the new in GDI+, please refer to the following Microsoft`s article:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms533797%28v=vs.85%29.aspx
Therefore in order to fit your requirements, look for the UltraGrid`s property TextRenderingMode and change it to GDI. This also works for the UltraTextEditor and any control that has TextRenderingMode property.
hi thanks , my issue is fixed
I am glad that you were able to solve this issue.
Please let me know if you need any further assistance on it.
Thank you for using Infragistics Components!
hi I use infragistics 14
when I set righttoleft = true for example in ultralable and set text = : نام کاربری
this text shown:
نام کاربری:
in latest version this shown correctly