Telerik Forums
UI for WinForms Forum
1 answer
393 views

Hi all,

 

here is a German localizaion for you.

I thought I could share it. Because I did not found any in the forum.

 

public override string GetLocalizedString(string id)
       {
           switch (id)
           {
               case RadGridStringId.ConditionalFormattingPleaseSelectValidCellValue: return "Bitte wählen Sie einen gültigen Wert aus";
               case RadGridStringId.ConditionalFormattingPleaseSetValidCellValue: return "Bitte legen Sie einen gültigen Zellenwert fest";
               case RadGridStringId.ConditionalFormattingPleaseSetValidCellValues: return "Bitte legen Sie einen gültigen Zellenwerte fest";
               case RadGridStringId.ConditionalFormattingPleaseSetValidExpression: return "Bitte legen Sie einen gültigen Ausdruck fest";
               case RadGridStringId.ConditionalFormattingItem: return "Artikel";
               case RadGridStringId.ConditionalFormattingInvalidParameters: return "Ungültige Parameter";
               case RadGridStringId.FilterFunctionBetween: return "Zwischen";
               case RadGridStringId.FilterFunctionContains: return "Enthält";
               case RadGridStringId.FilterFunctionDoesNotContain: return "Enthält nicht";
               case RadGridStringId.FilterFunctionEndsWith: return "Endet mit";
               case RadGridStringId.FilterFunctionEqualTo: return "Gleicht";
               case RadGridStringId.FilterFunctionGreaterThan: return "Größer als";
               case RadGridStringId.FilterFunctionGreaterThanOrEqualTo: return "Größer als oder gleich mit";
               case RadGridStringId.FilterFunctionIsEmpty: return "Ist leer";
               case RadGridStringId.FilterFunctionIsNull: return "Ist null";
               case RadGridStringId.FilterFunctionLessThan: return "Kleiner als";
               case RadGridStringId.FilterFunctionLessThanOrEqualTo: return "Kleiner als oder gleich mit";
               case RadGridStringId.FilterFunctionNoFilter: return "Kein Filter";
               case RadGridStringId.FilterFunctionNotBetween: return "Nicht dazwischen";
               case RadGridStringId.FilterFunctionNotEqualTo: return "Nicht gleich";
               case RadGridStringId.FilterFunctionNotIsEmpty: return "Ist nicht leer";
               case RadGridStringId.FilterFunctionNotIsNull: return "Ist nicht null";
               case RadGridStringId.FilterFunctionStartsWith: return "Beginnt mit";
               case RadGridStringId.FilterFunctionCustom: return "Benutzerdefiniert";
               case RadGridStringId.FilterOperatorBetween: return "Zwischen";
               case RadGridStringId.FilterOperatorContains: return "Enthält";
               case RadGridStringId.FilterOperatorDoesNotContain: return "BeinhaltetNicht";
               case RadGridStringId.FilterOperatorEndsWith: return "EndetMit";
               case RadGridStringId.FilterOperatorEqualTo: return "Gleicht";
               case RadGridStringId.FilterOperatorGreaterThan: return "GrößerAls";
               case RadGridStringId.FilterOperatorGreaterThanOrEqualTo: return "GrößerAlsOderGleichMit";
               case RadGridStringId.FilterOperatorIsEmpty: return "IstLeer";
               case RadGridStringId.FilterOperatorIsNull: return "IstNull";
               case RadGridStringId.FilterOperatorLessThan: return "WenigerAls";
               case RadGridStringId.FilterOperatorLessThanOrEqualTo: return "KleinerAlsOderGleichMit";
               case RadGridStringId.FilterOperatorNoFilter: return "Kein Filter";
               case RadGridStringId.FilterOperatorNotBetween: return "NichtDazwischen";
               case RadGridStringId.FilterOperatorNotEqualTo: return "NichtGleich";
               case RadGridStringId.FilterOperatorNotIsEmpty: return "NichtLeer";
               case RadGridStringId.FilterOperatorNotIsNull: return "NichtNull";
               case RadGridStringId.FilterOperatorStartsWith: return "BeginntMit";
               case RadGridStringId.FilterOperatorIsLike: return "Wie";
               case RadGridStringId.FilterOperatorNotIsLike: return "NichtWie";
               case RadGridStringId.FilterOperatorIsContainedIn: return "EnthaltenIn";
               case RadGridStringId.FilterOperatorNotIsContainedIn: return "NichtEnthaltenIn";
               case RadGridStringId.FilterOperatorCustom: return "Benutzerdefiniert";
               case RadGridStringId.CustomFilterMenuItem: return "Benutzerdefiniert";
               case RadGridStringId.CustomFilterDialogCaption: return "RadGridView Filter Dialog [{0}]";
               case RadGridStringId.CustomFilterDialogLabel: return "Zeilen anzeigen die:";
               case RadGridStringId.CustomFilterDialogRbAnd: return "UND";
               case RadGridStringId.CustomFilterDialogRbOr: return "ODER";
               case RadGridStringId.CustomFilterDialogBtnOk: return "OK";
               case RadGridStringId.CustomFilterDialogBtnCancel: return "Abbrechen";
               case RadGridStringId.CustomFilterDialogCheckBoxNot: return "Nicht";
               case RadGridStringId.CustomFilterDialogTrue: return "Wahr";
               case RadGridStringId.CustomFilterDialogFalse: return "Falsch";
               case RadGridStringId.FilterMenuBlanks: return "Leer";
               case RadGridStringId.FilterMenuAvailableFilters: return "Verfügbare Filter";
               case RadGridStringId.FilterMenuSearchBoxText: return "Suche...";
               case RadGridStringId.FilterMenuClearFilters: return "Filter löschen";
               case RadGridStringId.FilterMenuButtonOK: return "OK";
               case RadGridStringId.FilterMenuButtonCancel: return "Abbrechen";
               case RadGridStringId.FilterMenuSelectionAll: return "Alle";
               case RadGridStringId.FilterMenuSelectionAllSearched: return "Alle such Ergebnisse";
               case RadGridStringId.FilterMenuSelectionNull: return "Null";
               case RadGridStringId.FilterMenuSelectionNotNull: return "Nicht Null";
               case RadGridStringId.FilterFunctionSelectedDates: return "Filter nach spezifischem Datum:";
               case RadGridStringId.FilterFunctionToday: return "Heute";
               case RadGridStringId.FilterFunctionYesterday: return "Gestern";
               case RadGridStringId.FilterFunctionDuringLast7days: return "In den letzten 7 Tagen";
               case RadGridStringId.FilterLogicalOperatorAnd: return "UND";
               case RadGridStringId.FilterLogicalOperatorOr: return "ODER";
               case RadGridStringId.FilterCompositeNotOperator: return "NICHT";
               case RadGridStringId.DeleteRowMenuItem: return "Zeile löschen";
               case RadGridStringId.SortAscendingMenuItem: return "Aufsteigend sortieren";
               case RadGridStringId.SortDescendingMenuItem: return "Absteigend sortieren";
               case RadGridStringId.ClearSortingMenuItem: return "Sortierung löschen";
               case RadGridStringId.ConditionalFormattingMenuItem: return "Bedingte Formatierung";
               case RadGridStringId.GroupByThisColumnMenuItem: return "Nach dieser Spalte gruppieren";
               case RadGridStringId.UngroupThisColumn: return "Gruppierung dieser Spalte aufheben";
               case RadGridStringId.ColumnChooserMenuItem: return "Spalten auswahl";
               case RadGridStringId.HideMenuItem: return "Spalte verbergen";
               case RadGridStringId.HideGroupMenuItem: return "Gruppe verbergen";
               case RadGridStringId.UnpinMenuItem: return "Fixierung lösen";
               case RadGridStringId.UnpinRowMenuItem: return "Fixierung lösen";
               case RadGridStringId.PinMenuItem: return "Fixierungs status";
               case RadGridStringId.PinAtLeftMenuItem: return "Links fixieren";
               case RadGridStringId.PinAtRightMenuItem: return "Rechts fixieren";
               case RadGridStringId.PinAtBottomMenuItem: return "Unten fixieren";
               case RadGridStringId.PinAtTopMenuItem: return "Oben fixieren";
               case RadGridStringId.BestFitMenuItem: return "Automatisch anpassen";
               case RadGridStringId.PasteMenuItem: return "Einfügen";
               case RadGridStringId.EditMenuItem: return "Editieren";
               case RadGridStringId.ClearValueMenuItem: return "Wert entfernen";
               case RadGridStringId.CopyMenuItem: return "Kopieren";
               case RadGridStringId.CutMenuItem: return "Ausschneiden";
               case RadGridStringId.AddNewRowString: return "Hier klicken zum hinzufügen einer neue Zeile";
               case RadGridStringId.ConditionalFormattingSortAlphabetically: return "Spalten alphabetisch sortieren";
               case RadGridStringId.ConditionalFormattingCaption: return "Bedingter Formatierungsregeln Manager";
               case RadGridStringId.ConditionalFormattingLblColumn: return "Formatieren nur Zellen mit";
               case RadGridStringId.ConditionalFormattingLblName: return "Regel Name";
               case RadGridStringId.ConditionalFormattingLblType: return "Zellenwert";
               case RadGridStringId.ConditionalFormattingLblValue1: return "Wert 1";
               case RadGridStringId.ConditionalFormattingLblValue2: return "Wert 2";
               case RadGridStringId.ConditionalFormattingGrpConditions: return "Regeln";
               case RadGridStringId.ConditionalFormattingGrpProperties: return "Regel Eigenschaften";
               case RadGridStringId.ConditionalFormattingChkApplyToRow: return "Wenden Sie diese Formatierung auf ganze Zeile an";
               case RadGridStringId.ConditionalFormattingChkApplyOnSelectedRows: return "Wenden Sie diese Formatierung an, wenn die Zeile ausgewählt ist";
               case RadGridStringId.ConditionalFormattingBtnAdd: return "Neue Regel hinzufügen";
               case RadGridStringId.ConditionalFormattingBtnRemove: return "Entfernen";
               case RadGridStringId.ConditionalFormattingBtnOK: return "OK";
               case RadGridStringId.ConditionalFormattingBtnCancel: return "Abbrechen";
               case RadGridStringId.ConditionalFormattingBtnApply: return "Übernehmen";
               case RadGridStringId.ConditionalFormattingRuleAppliesOn: return "Regel gilt für";
               case RadGridStringId.ConditionalFormattingCondition: return "Bedingung";
               case RadGridStringId.ConditionalFormattingExpression: return "Ausdruck";
               case RadGridStringId.ConditionalFormattingChooseOne: return "[Wähle einen]";
               case RadGridStringId.ConditionalFormattingEqualsTo: return "ist gleich[Wert1]";
               case RadGridStringId.ConditionalFormattingIsNotEqualTo: return "nicht gleich [Wert1]";
               case RadGridStringId.ConditionalFormattingStartsWith: return "beginnt mit [Wert1]";
               case RadGridStringId.ConditionalFormattingEndsWith: return "endet mit [Wert1]";
               case RadGridStringId.ConditionalFormattingContains: return "enthält [Wert1]";
               case RadGridStringId.ConditionalFormattingDoesNotContain: return "enthält nicht [Wert1]";
               case RadGridStringId.ConditionalFormattingIsGreaterThan: return "ist größer als [Wert1]";
               case RadGridStringId.ConditionalFormattingIsGreaterThanOrEqual: return "ist größer oder gleich [Wert1]";
               case RadGridStringId.ConditionalFormattingIsLessThan: return "ist kleiner als [Wert1]";
               case RadGridStringId.ConditionalFormattingIsLessThanOrEqual: return "ist kleiner oder gleich [Wert1]";
               case RadGridStringId.ConditionalFormattingIsBetween: return "zwischen [Wert1] und [Wert2]";
               case RadGridStringId.ConditionalFormattingIsNotBetween: return "nicht zwischen [Wert1] und [Wert1]";
               case RadGridStringId.ConditionalFormattingLblFormat: return "Format";
               case RadGridStringId.ConditionalFormattingBtnExpression: return "Ausdruckseditor";
               case RadGridStringId.ConditionalFormattingTextBoxExpression: return "Ausdruck";
               case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitive: return "Groß-/Kleinschreibung ";
               case RadGridStringId.ConditionalFormattingPropertyGridCellBackColor: return "ZellenHintergrundFarbe";
               case RadGridStringId.ConditionalFormattingPropertyGridCellForeColor: return "ZellenSchriftFarbe";
               case RadGridStringId.ConditionalFormattingPropertyGridEnabled: return "Aktiviert";
               case RadGridStringId.ConditionalFormattingPropertyGridRowBackColor: return "ZeilenHintergrundFarbe";
               case RadGridStringId.ConditionalFormattingPropertyGridRowForeColor: return "ZeilenSchriftFarbe";
               case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignment: return "ZeilenTextAusrichtung";
               case RadGridStringId.ConditionalFormattingPropertyGridTextAlignment: return "TextAusrichtung";
               case RadGridStringId.ConditionalFormattingPropertyGridCaseSensitiveDescription: return "Bestimmt, ob Groß- / Kleinschreibung bei der Auswertung von Text-Werten berücksichtigt wird.";
               case RadGridStringId.ConditionalFormattingPropertyGridCellBackColorDescription: return "Geben Sie die Hintergrundfarbe ein, die für die Zelle verwendet werden soll.";
               case RadGridStringId.ConditionalFormattingPropertyGridCellForeColorDescription: return "Geben Sie die Schriftfarbe ein, die für die Zelle verwendet werden soll.";
               case RadGridStringId.ConditionalFormattingPropertyGridEnabledDescription: return "Bestimmt, ob die Bedingung aktiviert ist (ausgewertet und angewendet werden kann).";
               case RadGridStringId.ConditionalFormattingPropertyGridRowBackColorDescription: return "Geben Sie die Hintergrundfarbe ein, die für die gesamte Zeile verwendet werden soll.";
               case RadGridStringId.ConditionalFormattingPropertyGridRowForeColorDescription: return "Geben Sie die Schriftfarbe ein, die für die gesamte Zeile verwendet werden soll.";
               case RadGridStringId.ConditionalFormattingPropertyGridRowTextAlignmentDescription: return "Geben Sie die Ausrichtung ein, die für die Zellenwerte verwendet werden soll, wenn AufZeileAnwenden wahr ist.";
               case RadGridStringId.ConditionalFormattingPropertyGridTextAlignmentDescription: return "Geben Sie die Ausrichtung ein, die für die Zellenwerte verwendet werden soll.";
               case RadGridStringId.ColumnChooserFormCaption: return "Spaltenauswahl";
               case RadGridStringId.ColumnChooserFormMessage: return "Ziehen sie einen Spaltenkopf aus der Tablle,\num ihn aus der aktuellen Ansicht zu entfernen.";
               case RadGridStringId.GroupingPanelDefaultMessage: return "Ziehen Sie eine Spalte hier hin, um durch diese Spalte zu gruppieren.";
               case RadGridStringId.GroupingPanelHeader: return "Gruppieren nach:";
               case RadGridStringId.PagingPanelPagesLabel: return "Seite";
               case RadGridStringId.PagingPanelOfPagesLabel: return "von";
               case RadGridStringId.NoDataText: return "Keine Daten zum Anzeigen";
               case RadGridStringId.CompositeFilterFormErrorCaption: return "Filterfehler";
               case RadGridStringId.CompositeFilterFormInvalidFilter: return "Der zusammengesetzte Filterausdruck ist nicht gültig.";
               case RadGridStringId.ExpressionMenuItem: return "Ausdruck";
               case RadGridStringId.ExpressionFormTitle: return "Ausdrucksgenerator";
               case RadGridStringId.ExpressionFormFunctions: return "Funktionen";
               case RadGridStringId.ExpressionFormFunctionsText: return "Text";
               case RadGridStringId.ExpressionFormFunctionsAggregate: return "Aggregat";
               case RadGridStringId.ExpressionFormFunctionsDateTime: return "Datum";
               case RadGridStringId.ExpressionFormFunctionsLogical: return "Logisch";
               case RadGridStringId.ExpressionFormFunctionsMath: return "Mathe";
               case RadGridStringId.ExpressionFormFunctionsOther: return "Andere";
               case RadGridStringId.ExpressionFormOperators: return "Operatoren";
               case RadGridStringId.ExpressionFormConstants: return "Konstanten";
               case RadGridStringId.ExpressionFormFields: return "Felder";
               case RadGridStringId.ExpressionFormDescription: return "Beschreibung";
               case RadGridStringId.ExpressionFormResultPreview: return "Ergebniss Vorschau";
               case RadGridStringId.ExpressionFormTooltipPlus: return "Plus";
               case RadGridStringId.ExpressionFormTooltipMinus: return "Minus";
               case RadGridStringId.ExpressionFormTooltipMultiply: return "Multiplizieren";
               case RadGridStringId.ExpressionFormTooltipDivide: return "Dividieren";
               case RadGridStringId.ExpressionFormTooltipModulo: return "Modulo";
               case RadGridStringId.ExpressionFormTooltipEqual: return "Gleich";
               case RadGridStringId.ExpressionFormTooltipNotEqual: return "Nicht gleich";
               case RadGridStringId.ExpressionFormTooltipLess: return "Kleiner";
               case RadGridStringId.ExpressionFormTooltipLessOrEqual: return "Kleiner oder Gleich";
               case RadGridStringId.ExpressionFormTooltipGreaterOrEqual: return "Größer oder Gleich";
               case RadGridStringId.ExpressionFormTooltipGreater: return "Größer";
               case RadGridStringId.ExpressionFormTooltipAnd: return "Logisches \"UND\"";
               case RadGridStringId.ExpressionFormTooltipOr: return "Logisches \"ODER\"";
               case RadGridStringId.ExpressionFormTooltipNot: return "Logisches \"NICHT\"";
               case RadGridStringId.ExpressionFormAndButton: return string.Empty; //if empty, default button image is used
               case RadGridStringId.ExpressionFormOrButton: return string.Empty; //if empty, default button image is used
               case RadGridStringId.ExpressionFormNotButton: return string.Empty; //if empty, default button image is used
               case RadGridStringId.ExpressionFormOKButton: return "OK";
               case RadGridStringId.ExpressionFormCancelButton: return "Abbrechen";
               case RadGridStringId.SearchRowChooseColumns: return "SearchRowChooseColumns";
               case RadGridStringId.SearchRowSearchFromCurrentPosition: return "SearchRowSearchFromCurrentPosition";
               case RadGridStringId.SearchRowMenuItemMasterTemplate: return "SearchRowMenuItemMasterTemplate";
               case RadGridStringId.SearchRowMenuItemChildTemplates: return "SearchRowMenuItemChildTemplates";
               case RadGridStringId.SearchRowMenuItemAllColumns: return "SearchRowMenuItemAllColumns";
               case RadGridStringId.SearchRowTextBoxNullText: return "SearchRowTextBoxNullText";
               case RadGridStringId.SearchRowResultsOfLabel: return "SearchRowResultsOfLabel";
               case RadGridStringId.SearchRowMatchCase: return "Übereinstimmung";
           }
           return string.Empty;

 

Some things below i did not.

Because it sounds very wierd in german and i think it´s to long :).

I hope it is correct.

Please feel free to correct it if not.

 

All the Best

Gunther

Hristo
Telerik team
 answered on 02 Mar 2017
1 answer
151 views

I'm using RadForms for this project and the MDI Child form has only a RadMenu and a RadPageView on it.  When the menu is merged with the parent form's menu I would like to set the pageview's dock property to fill.  When the menu is not merged with the parent form's menu I would like to set the pageview's dock property to none.  The idea is that the pageview will occupy the entire (child) form when the menu is not present but will return to the location where it leaves space for the menu when the menu is present.

I haven't found the solution for determining when the menu is "on" the child form.  Is there one?

Thank you,

Gary

Hristo
Telerik team
 answered on 02 Mar 2017
2 answers
147 views

Hi, I am using a radrichtexteditor for displaying information about our application. I set the Text property of my radrichtexteditor. 

 

The text now is formatted with a size and font that I cannot work with. So i tried to set another Font and size. I found the following code online.

      loRadRichTextEditor:Document:Selection:SelectAll().
      loRadRichTextEditor:ChangeFontFamily(NEW Telerik.WinControls.RichTextEditor.UI.FontFamily("Courier New":U)).
      loRadRichTextEditor:ChangeFontSize(Telerik.WinForms.Documents.Model.Unit:PointToDip(8.75)).
      loRadRichTextEditor:RichTextBoxElement:ChangeParagraphLineSpacing(0.5).
      loRadRichTextEditor:RichTextBoxElement:ChangeParagraphSpacingAfter(12).
      loRadRichTextEditor:DocumentInheritsDefaultStyleSettings = TRUE.
      loRadRichTextEditor:Document:Selection:Clear().

 

This code is working fine but there are several radrichtexteditors on my view(tabs) and I have to set these properties for every control so bad performance. Is there a way to set the Font and the size more easily ?

Sincerely,

Dominik Zöbl

Dominik
Top achievements
Rank 1
 answered on 01 Mar 2017
16 answers
1.0K+ views
I'm trying to do something similar to Richard Slate's Row Details Grid, only instead of trying to use a "details" column, I'd like to be able to format the "Details" space with info more like the RadControls example "Custom Views". Is this possible? Basically formatted like the Custom View example, but shown under the row like the Details Grid example.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Feb 2017
1 answer
316 views

Hi I am a new user of telerik,

I am currentlying using the grid view extension make by Richard http://www.telerik.com/forums/details-view-under-row-in-gridview

I have a radbutton which will delete a row of data after pressed. I have no issue with deleting a row of data in the master view. I just cannot get my head around with deleting a row of data in the child view. Secondly, I want a check box to appear next to each row both in master and child view. After each check box is checked and the delete button is pressed I would like the checked row to be delete. My data is loaded directly from a local Microsoft sql server

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Feb 2017
1 answer
182 views

This is for a tablet and I'm sizing things for fat fingers or that wand.  What property do I reference in order to make the drop down button wider (DropDownList)?  

(I'm open to a suggestion for a better approach - like a different control - for a touch screen where the user may need to select from a small list of choices.)

Thank you,

Gary

 

Dimitar
Telerik team
 answered on 28 Feb 2017
13 answers
317 views

Hi Telerik

We have been using RadGridView for ages. Some of our customers have approx 100.000 rows of customers displayed in the grid. We have always gotten good remarks because of the fast filtering in the grids (isLike filtering on Textboxcolumns), however, as of lately it has gotten much slower, even though we have not made changes in code.

Have you made any changes  in grid, that could cause it to slow down?

 

Should it not be lightning fast with 100.000 rows?

 

I have tried  implementing a delayed filtering, so that if the user types "Test" fast, it will only filter once. However, it is giving me a lot of headache - have you seen any examples of people accomplishing this?

Dimitar
Telerik team
 answered on 28 Feb 2017
2 answers
100 views

Hi.

Is it possible to change the circle gauge yo make it ovaladed?

Hristo
Telerik team
 answered on 27 Feb 2017
6 answers
184 views

In this application we are running around the warehouse and picking items for an order.  The user gets to select any row in the gridview of items either by clicking that row or entering a search field and the program will find a row from that..

What I want to do is this:

1. When a row is selected, show only that row and show a panel where the user takes an action.

2. When the user completes the action for that row, restore the gridview to showing all of the rows and make that panel disappear.

How I think of this is:

  • A split container with two panels (and 0 for the splitter width).  One panel contains the gridview.  The other panel contains the controls for the user to execute the action for the selected gridview row.
  • When a row is selected, that panel and gridview will decrease their size to contain only the header row and the selected row.  The other panel will expand into the vacated space in the split container.  Reverse this when the action for that row is completed.  (That other panel won't be visible.)
  • When the row is selected, no scrolling, no touching, nothing.  It's there to show you what you have selected to work on.  That's all.

I'm doing fine with collapsing the panels in the split container.  I'd like help with

  1. Either setting the current row as the first visible row or making the current row the only visible row (other suggestions are welcome).
  2. Hiding the scroll bar and other things to keep the user out of the gridview when a row has been selected.
  3. Calculating the height to set the gridview so that it is tall enough to show the header and one row (I think I've been there before).

Thank you.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Feb 2017
1 answer
292 views

   Hi Telerik Team,

i begin to developing a telerik UI by using c#. i added a CommandBarDropDownButton for language selection (English & Arabic). When i set currentculture as arabic and RightToLeft to Yes, CommandBarDropDownButton items, are onthe right side of screen, show up shifted position, in a wrong position. i attached the screenshots for clarifying problem. 

Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
  
namespace TelerikWinFormsApp2
{
    public partial class Form1 : RadForm
    {
        private static RightToLeft right2Left = RightToLeft.No;
        private readonly object _locker = new object();
  
        public static CultureInfo CurrentCulture { get; set; }
  
        private RightToLeft Right2Left
        {
            get { return right2Left; }
            set {
                if (!(right2Left == value))
                {
                    lock(_locker){
                        right2Left = value;
                        CultureChangeFunc();
                    }
                }
            }
        }
  
        public Form1()
        {
            InitializeComponent();
        }
  
        private void Form1_Load(object sender, EventArgs e)
        {
            InitializeToolbar();
        }
  
        private void InitializeToolbar()
        {
            bseLayout.Grip.Visibility = ElementVisibility.Collapsed;
            bseActions1.Grip.Visibility = ElementVisibility.Collapsed;
            bseLanguage.Grip.Visibility = ElementVisibility.Collapsed;
  
            bseLanguage.DesiredLocation = new PointF(10000, 0);
  
            this.commandBarDropDownButton2.Image = Image.FromFile("icons\\32x32\\icon_list.png");
            this.commandBarDropDownButton3.Image = Image.FromFile("icons\\32x32\\icon_settings.png");
            this.commandBarDropDownButton4.Image = Image.FromFile("icons\\32x32\\icon_lang.png");
            this.commandBarButton7.Image = Image.FromFile("icons\\32x32\\icon_info.png");
            this.commandBarButton4.Image = Image.FromFile("icons\\32x32\\icon_help.png");
  
        }
  
        private void rmiLanguage_Click(object sender, EventArgs e)
        {
            var selectedItem = (RadMenuItem)sender;
            if (selectedItem.Tag == null)
                return;
  
            try
            {
                if (selectedItem.Tag.Equals("rmiEnglish"))
                {
                    CurrentCulture = new CultureInfo("en-US");
                    Right2Left = RightToLeft.No;
                }
                else if (selectedItem.Tag.Equals("rmiArabic"))
                {
                    CurrentCulture = new CultureInfo("ar-SA");
                    Right2Left = RightToLeft.Yes;
                }
                else
                {
                    return;
                }                  
            }
            catch (Exception ex)
            {
                MessageBox.Show("Change Language Error : "+ ex.Message.ToString());
            }
        }
  
        private void CultureChangeFunc()
        {
            try
            {
                Thread.CurrentThread.CurrentCulture = CurrentCulture;
                Thread.CurrentThread.CurrentUICulture = CurrentCulture;
                RightToLeft = Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft ? RightToLeft.Yes : RightToLeft.No;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Change Language Error : ", ex.Message.ToString());
            }
        }
  
  
  
    }
}

 

Best Regards..

 

Dimitar
Telerik team
 answered on 27 Feb 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?