Are there some bugs in localization and cursoring?

4 posts, 1 answers
  1. SarperSozen
    SarperSozen avatar
    10 posts
    Member since:
    Nov 2015

    Posted 28 Nov 2015 Link to this post

    Hello I am examining PDFViwer PdfViewerNavigator controls. But in both of two, something is gone wrong.

    Firstly, in RadPdfViewer cursor property only allows "WaitCursor". When I try to change as "Default", it is not allowed.

    Secondly, in RadPdfViewerNavigator localization is not allowed. I override like this:

    01.public class PdfViewerLocalization : PdfViewerLocalizationProvider
    03.    public override string GetLocalizedString(string id)
    04.    {
    05.        switch (id)
    06.        {
    07.            case PdfViewerStringId.NavigatorOpenButton: return "Aç";
    08.            case PdfViewerStringId.NavigatorPrintButton: return "Yazdır";
    09.            case PdfViewerStringId.NavigatorPreviousPageButton: return "Önceki";
    10.            case PdfViewerStringId.NavigatorNextPageButton: return "Sonraki";
    11.            case PdfViewerStringId.NavigatorCurrentPageTextBox: return "Şimdiki";
    12.        }
    13.            return base.GetLocalizedString(id);
    14.    }

     15. }

    But when I execute, It is same. English is not changing.

    Could you help me for this situations?

    Kind regards.

  2. SarperSozen
    SarperSozen avatar
    10 posts
    Member since:
    Nov 2015

    Posted 28 Nov 2015 in reply to SarperSozen Link to this post

    I want to edit but there is no option for this. It must be good if this option add. In the first situation, UseWaitCursor is dominating Cursor. So UseWaitCursor option must be set false.

    But second situation is still vaguefor me.

  3. Answer
    Hristo avatar
    1522 posts

    Posted 01 Dec 2015 Link to this post

    Hello Mehmet,

    Thank you for writing.

    There are no known issues considering the cursors in RadPdfViewer and the localization besides this one: feedback item. The type of the displayed cursor is defined by the value of the Mode property of the RadPdfViewerElement, the allowed states are as follow: None, Pan, TextSelection. 

    Considering the localization of the strings please make sure that you have set the PdfViewerLocalizationProvider.CurrentProvider to your instance: Localization. Please check my code snippet below:
    public partial class Form1 : Form
        public Form1()
            PdfViewerLocalizationProvider.CurrentProvider = new MyLocalizationProvider();
        private void radButton1_Click(object sender, EventArgs e)
            this.radPdfViewer1.PdfViewerElement.Mode = Telerik.WinControls.UI.FixedDocumentViewerMode.None;
    public class MyLocalizationProvider : PdfViewerLocalizationProvider
        public override string GetLocalizedString(string id)
            switch (id)
                case PdfViewerStringId.NavigatorOpenButton:
                    return "Aç";
                case PdfViewerStringId.NavigatorPrintButton:
                    return "Yazdır";
                case PdfViewerStringId.NavigatorPreviousPageButton:
                    return "Önceki";
                case PdfViewerStringId.NavigatorNextPageButton:
                    return "Sonraki";
                case PdfViewerStringId.NavigatorCurrentPageTextBox:
                    return "Şimdiki";
            return base.GetLocalizedString(id);

    I am also sending you a gif file showing the result on my end.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. SarperSozen
    SarperSozen avatar
    10 posts
    Member since:
    Nov 2015

    Posted 01 Dec 2015 in reply to Hristo Link to this post

    Hi Hristo,

    Thank you for your interest and support. I forgot to get instance in constructer method.

    Kind regards,


Back to Top