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

Is it possible to pen an url when event is clicked?

1 Answer 39 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ziyahan
Top achievements
Rank 1
ziyahan asked on 22 Dec 2014, 03:40 PM
Dear All;
I want to route my users to an url contains more detail related to my clicked event. I think we cannot set it when we configure the event. Is there anyway to solve it? 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Dec 2014, 09:44 AM
Hi Emre,

You can probably use the change event of the scheduler:

change: function(e) {
   if (e.events.length > 0) {
      location.href = "/details?id=" + e.events[0].id;
   }
}

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
ziyahan
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or