I'm developing an Application that is targeted for the Arabic language.
When using a standard GridView to get the grid to display in a right to left fashion you need to mirror the control. The code to do this looks like this:
protected override CreateParams CreateParams { get { CreateParams CP; CP = base.CreateParams; if(_mirrored) CP.ExStyle = CP.ExStyle | WS_EX_LAYOUTRTL | WS_EX_NOINHERITLAYOUT; return CP; } }
This works perfectly with the GridView, However with the WinGrid the text is painted in reverse as if it was flipped.
Is there a way to override this behavior and get it to paint correctly?
As far as I know, there is no way to do this with CreateParams.
If you have version 9.2, you can use the UltraControlContainerEditor as an EditorComponent of a column, and you can attach an MS TextBox that supports rtl to the UltraControlContainerEditor. I don't know if this will work with CreateParams. If you really want to work hard, you can use CreationFilter to move things in the grid while it is drawing itself.
I think Infragistics should support rtl and you can help that by creating a feature request.
As I can see throughout the forum, RTL is not something the Infragistics Crew supports. Although this is published means for a user to accomplish RTL with additional work. However Infragistics has not implemented their controls in such a way that it no longer compatible with the Microsoft solution. I think that this is an oversight and design issue in that you do not want to disable or break functionality of a control you are intending to replace.
I would like an official word from Infragistics on this post.
The Infragistics WinForms control do not support RTL.
Hello,
My company has a need for Read-To-Left due to need to create an Arabic version on our User Interface. We are using this subset of Infragistics on the product I am refering to:
How should I now proceed with the request ?
Jukka
Hello Jukka,
I would like to know if you want the layout itself to be right-to-left of the controls or the text in these controls.
Hi
Thank you for your reply, Boris
At this stage we are only requested to implement Right To Left for Text.
The Right To Left Layout will possibly be relevant in future but not now.
The list I provided actually missed something - I update the list:
So my question is: Is it possible to get the support for Right-To-Left.
What is the procedure to request it ? How big an effort such addition would mean ? What is an eventual economical implications ? Is there any work around.
Hi Jukka,
No, the Infragistics NetAdvantage Windows Forms controls do not support RightToLeft. The RightToLeft property is a property on System.Windows.Forms.Control, so it's on every control in the DotNet framework, but it is not supported.
Jukkaaakula said:Actually I do now understand your point.
Sorry I would write "I do NOT understand your point. I thought this would be handled like in windows foms using the RightToLeft property of Controls."
Hi Boris,
Actually I do now understand your point. I thought this would be handled like in wondows foms using the RightToLeft property of Controls.
If the 'TextHAlign' property set to 'Right' in the 'Appearance' objects does not meet your requirements I will let our product management team of your request in order to enhance our toolset.
Please do not hesitate to contact us if you need any additional assistance.