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

messages.event not working

2 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kjeld
Top achievements
Rank 1
Kjeld asked on 05 Sep 2013, 05:58 PM
Hi,

I Noticed that supplying a  
messages.event
object does work, but not the 'event' property.

So:

messages: {
          cancel: "Annuleer",
          save: "Opslaan",
          today: "Vandaag",
          event: "Boeking",
        },
Will not render the title of an edit-event popup to "Boeking".
I use a custom template, as in:

editable: {
          template: $("#editor").html(),
          confirmation: "Wilt u deze boeking daadwerkelijk verwijderen?",
          resize:false,
        },

I found a workaround:
In the parse function of the transport.schema object it's possible to define extra functions. They can do extra magic, and called from the template using MVVM bindings. :)
Like this:
$("span.k-window-title").html("Boeking");
Another use for this method:
Hide the save/cancel buttonbar in certain conditions. Like this:
$("div.k-edit-buttons").css("display","none");

Just my 2 cents!





2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 09 Sep 2013, 09:29 AM
Hi Kjeld,

 
For convenience I created small example of translating all messages of KendoUI scheduler and attached it to the current thread (latest internal build will be required).

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Accepted
Kjeld
Top achievements
Rank 1
answered on 09 Sep 2013, 03:13 PM
Thanx Vladimir,

It turned out I used the wrong property to set the event title.
Thanx!
Tags
Scheduler
Asked by
Kjeld
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Kjeld
Top achievements
Rank 1
Share this question
or