C1FlexSearchPanel Watermark BUG

Posted by: fabio.lavitola on 17 August 2022, 1:13 pm EST

  • Posted 17 August 2022, 1:13 pm EST

    Hi,

    since I’m italian, my watermark is in ITALIAN (“Inserire il testo da cercare…”).

    But when I invoke the C1flxGridSearchPanel.ResetWatermark() Method, the Watermark return to “Enter text to search…” as u can see in the Visual Studio 2022 decompiled code

    public static string Watermark => StringsManager.GetString(MethodBase.GetCurrentMethod(), “Enter text to search…”);

    But I did expect by your side something like

    public static string Watermark => StringsManager.GetString(MethodBase.GetCurrentMethod(), xxx.DisplayFormat.NullText);

  • Posted 18 August 2022, 7:08 am EST

    Hello Fabio,

    We are discussing this with the development team and will let you know as soon as we get any update from their end.

    [Internal Tracking ID: C1WIN-28030]

    Regards,

    Prabhat Sharma.

  • Posted 30 August 2022, 6:49 am EST

    Hello Fabio,

    As per the developers, we don’t have Italian localization -for SearchPanel.

    Could you please provide the sample to show what you are doing on your end?

    It would be nice if the mentioned problem will reproduce on the system with any different default locale - you can use the first sample on this page - https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.currentuiculture?view=net-6.0#examples - to force application for showing Italian locale.

    Regards,

    Prabhat Sharma.

  • Posted 30 August 2022, 9:44 am EST

    Hi Prabhat,

    the problem is not the localization burt the defualt value U have into serarch panel.

    As mentioned before, once ResetWatermark is invoked i expect the value set into the Design Time property: this text may also be in chinese, but I wanna show THAT default text…

    In your half-decompiled source code via Visual Studio I found this:

    public static string Watermark => StringsManager.GetString(MethodBase.GetCurrentMethod(), "Enter text to search...");
    

    In this portion of code U set the default value using a generic string (“Enter text to search…”), not the default value I can enter from deisgn time.

    Also I thought this was the correct code

    public static string Watermark => StringsManager.GetString(MethodBase.GetCurrentMethod(), [Watermark Default Text]);
    
  • Posted 31 August 2022, 3:44 am EST

    Hello,

    Thank you for your additional information and comments.

    We are discussing this with the developers and will get back to you with the updates soon.

    Regards,

    Prabhat Sharma.

Need extra support?

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

Learn More

Forum Channels