C1TrueDBGrid DataColumns FilterTexts

Posted by: SHanau on 3 June 2022, 1:37 am EST

    • Post Options:
    • Link

    Posted 3 June 2022, 1:37 am EST - Updated 3 October 2022, 1:26 pm EST

    Hi There,

    I’m applying German phrases to a DataColumn of C1TrueDBGrid 4.5.2 like this:

     
    public void LeistungenGridInitDataColumns(C1.Win.C1TrueDBGrid.C1DataColumnCollection dacc, int iDataColumn, int iGridSpalte)
            {
    
                switch (iGridSpalte)
                {
                    case (int)LeistSpalten.leist_ziffer:
                        dacc[iDataColumn].FilterDropdown = true;
                        dacc[iDataColumn].FilterDropdownText = "(alle)";
                        dacc[iDataColumn].FilterMultiSelect = true;
                        break;
                }
                dacc[iDataColumn].FilterEscape = "";
                dacc[iDataColumn].FilterApplyText = "Anw.";
                dacc[iDataColumn].FilterCancelText = "Abbr.";
                dacc[iDataColumn].FilterClearText = "Lösch.";
    }
    
    

    Now when I have C1TrueDbGrid’s built-in filterbar visible and try to filter said DataColumn by using the DropDownButton the German phrases are being displayed correctly. See Filter01.jpg

    But when I don’t have the filterbar visible and I try to filter the same DataColumn by using the DropDownButton still the English phrases and an additional filter section are being displayed. See Filter02.jpg

    How can I have the German phrases being displayed on every occasion? Settings the grid’s language to German won’t help at all.

    Thanks in advance,

    Stephan

  • Posted 5 June 2022, 5:56 pm EST

    Hi Stephan,

    If you want to manually change the texts for the Filter dropdown buttons of the C1TrueDBGrid when the FilterBar is disabled, you can handle the MouseUp event of the C1TrueDBGrid to get the Filter Editor form and then change the text for its buttons manually. Please refer to the attached sample showing the same (FilterDropDown_TDBG.zip).

    Although, changing the Text of the (Select All) option is not directly possible. We have shared the requirement with the development team to get their insights on it and will let you know as soon as we have an update.

    Also, FYI, the button texts in the Filter Dropdowns of the C1TrueDBGrid automatically follow the Current Culture by default. Please refer to the attached sample showing the same (FilterDDCulture_TDBG.zip).

    FilterDropDown_TDBG.zip

    FilterDDCulture_TDBG.zip

    [C1WIN-27502]

    Kind Regards,

    Kartik

  • Posted 7 June 2022, 9:10 pm EST

    Hi Stephan,

    As per the development team, since the C1 Controls support custom localization from resource files, you can add a resource file with your custom strings for any UI culture. Kindly refer to the updated sample showing the same.

    FilterDropDown_TDBG_loc.zip

    You can refer to the attached English localization strings, which include all the strings in the C1TrueDBGrid, and use the required strings in your custom resource file.

    en_C1TrueDBGrid_Localization_Strings.zip

    Kind Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels