This is a migrated thread and some comments may be shown as answers.

MonthYearPicker: cannot change popup buttons text

1 Answer 77 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 06 Oct 2011, 12:56 PM
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.

1 Answer, 1 is accepted

Sort by
0
Luis
Top achievements
Rank 1
answered on 07 Oct 2011, 02:45 PM
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
Tags
Calendar
Asked by
Luis
Top achievements
Rank 1
Answers by
Luis
Top achievements
Rank 1
Share this question
or