PdfViewer Localization

2 Answers 21 Views
PdfViewer and PdfViewerNavigator
Bekir
Top achievements
Rank 1
Iron
Bekir asked on 15 Oct 2021, 03:28 PM

Hello,

1. In the attached picture, the localization strings of the items with the red arrow are not in the LocalizationProvider. How can I localize them?
2. How can I turn off the DropDown button shown with the blue arrow in the picture?

Kind regards.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Oct 2021, 11:17 AM

Hello, Bekir,

I have prepared a sample code snippet for your reference demonstrating how to achieve both of the requirements you have:

        public RadForm1()
        {
            PdfViewerLocalizationProvider.CurrentProvider = new MyLocalizationProvider();
            InitializeComponent();

            this.radPdfViewerNavigator1.DefaultStrip.OverflowButton.Visibility = ElementVisibility.Collapsed;
        }

        public class MyLocalizationProvider : PdfViewerLocalizationProvider
        {
            public override string GetLocalizedString(string id)
            {
                switch (id)
                { 
                    case PdfViewerStringId.NavigatorPrintButton:
                        return "my print"; 
                    case PdfViewerStringId.NavigatorSearchTextBoxNullText:
                        return "my search text"; 
                }
                return base.GetLocalizedString(id);
            }
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Bekir
Top achievements
Rank 1
Iron
answered on 19 Oct 2021, 06:04 PM
Thank you Dess.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Bekir
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Bekir
Top achievements
Rank 1
Iron
Share this question
or