We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Localization

Hi, I''m trying to do some localization of the grid. I changed the RightToLeft property to true, this seems to work fine. When I type some letter in the cells, the letters are scrambled. Does the grid control support Localization, RightToLeft and Hebrew? Thanks Ronnie Kleinfeld

4 Replies

AD Administrator Syncfusion Team June 19, 2006 07:03 PM UTC

Hi Ronnie, The Answer for your question is yes. The GridControl''s RightToLeft property value indicating whether control''s elements are aligned to supprt locales using right to left fonts and also set the couple property for Localization of the grid. Please find the code snippet below. //The GridControl''s RightToLeft property indicating whether control''s elements are aligned to supprt locales using right to left fonts this.gridControl1.RightToLeft = RightToLeft.Yes; //The Grid''s TableStyle''s RightToLeft property indicate if cell contents read from right to left. this.gridControl1.TableStyle.RightToLeft = RightToLeft.Yes ; Grid''s TableStyle''s CultureInfo property holds rules for parsing and formatting the cell''s value. this.gridControl1.TableStyle.CultureInfo = new System.Globalization.CultureInfo("he-IL"); Please take a look at the GridLocalization.zip sample that illustrates the above and let me know if this helps you. Thanks for your interest in Syncfusion products. Regards, Haneef


RK Ronnie Kleinfeld June 20, 2006 07:27 AM UTC

Hi Haneef, Thanks for your reply. I tried the code you sent, but there is a problem. as you can see in the attachment, I entered some input for 3 cells. The first one is in English, there is no problem. The second is in hebrew, there is a problem, I don''t know if you know hebrew so I explain in the third cell. The third cell, I type number, I typed "1234" but as you can see is shows "2341". This will continue if I go to other cells as well. The problem is the same as in hebrew or RightToLeft. The first letter/number is OK and then it''s as if the computer pressed the "Home" key or the "End" key. Please tell me if there a solution for this problem. I want to buy and use this grid but this is a big probelm. Regards Ronnie Kleinfeld >Hi Ronnie, > >The Answer for your question is yes. The GridControl''s RightToLeft property value indicating whether control''s elements are aligned to supprt locales using right to left fonts and also set the couple property for Localization of the grid. Please find the code snippet below. > >//The GridControl''s RightToLeft property indicating whether control''s elements are aligned to supprt locales using right to left fonts >this.gridControl1.RightToLeft = RightToLeft.Yes; > >//The Grid''s TableStyle''s RightToLeft property indicate if cell contents read from right to left. >this.gridControl1.TableStyle.RightToLeft = RightToLeft.Yes ; > >Grid''s TableStyle''s CultureInfo property holds rules for parsing and formatting the cell''s value. >this.gridControl1.TableStyle.CultureInfo = new System.Globalization.CultureInfo("he-IL"); > >Please take a look at the GridLocalization.zip sample that illustrates the above and let me know if this helps you. > >Thanks for your interest in Syncfusion products. >Regards, >Haneef

Error32.zip


AD Administrator Syncfusion Team June 21, 2006 03:20 PM UTC

Hi Ronnie, In general the orginal text box behaves better than the rich textbox with Hebrew and arabhic languages. By default the grid uses the Richtext box control for cell editing, but if you set UseRightToLeftCompatibleTextBox to true then the grid will do editing with orginal TextBox control instead. Try this code to enable the UseRightToLeftCompatibleTextBox property. this.gridControl1.Model.Options.UseRightToLeftCompatibleTextBox = true; Let me know if this helps. Best Regards, Haneef


RK Ronnie Kleinfeld June 22, 2006 06:29 AM UTC

It works Thank you very much

Loader.
Live Chat Icon For mobile
Up arrow icon