MonthYearPicker: cannot change popup buttons text

2 posts, 0 answers
  1. Luis
    Luis avatar
    14 posts
    Member since:
    Jun 2009

    Posted 06 Oct 2011 Link to this post

    Hello,

    I am trying to change the text of the buttons inside the popup, but nothing I have tried works. My version is Q1 2011.
    I tell you what I have tried:

    1.- Setting the properties in design mode:

    <telerik:RadMonthYearPicker ID="rmypMesDeCierre" runat="server" Width="150px" Culture="Spanish (Spain)">
                    <MonthYearNavigationSettings OkButtonCaption="Ok" CancelButtonCaption="Cancelar" TodayButtonCaption="Hoy" />
    </telerik:RadMonthYearPicker>


    2.- Setting on server side at run time:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.rmypMesDeCierre.MonthYearNavigationSettings.TodayButtonCaption = "Hoy"
        Me.rmypMesDeCierre.MonthYearNavigationSettings.CancelButtonCaption = "Cancelar"
      End Sub


    3.- Setting on client load event:

    function page_load() {
          var m = $find("<%= rmypMesDeCierre.ClientID %>");
          var m2 = m.get_monthYearNavigationSettings();

          m2[0] = 'Hoy';
          m.set_monthYearNavigationSettings(m2);
        }

        Sys.Application.add_load(page_load);


    Could you help me?
    Thanks in advance.
  2. Luis
    Luis avatar
    14 posts
    Member since:
    Jun 2009

    Posted 07 Oct 2011 Link to this post

    Ticket answer:

    Thank you for contacting us.

    The presented issue was a bug in the previous release of RadControls for ASP .Net Ajax. In the latest Q2 2001 SP1 the problem does not appear.
    Please upgrade your application to the latest release and let me know if it works for you.

    All the best,
    Maria Ilieva
    the Telerik team
Back to Top