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

Double click going to another url

2 Answers 41 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 25 Sep 2015, 07:19 PM

Hello,

I'm using kendo scheduler with angularjs and i'm tring to: when i double click an event it's goes to another url, but without success.

It's possible to do it?

Thank you for your help.

2 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 29 Sep 2015, 02:09 PM

Hello Carlos,

The easiest way to achieve such functionality is by using the edit event to navigate to the other page. 

<script type="text/javascript">
  
    function scheduler_edit(e) {
        e.preventDefault();
        var event = e.event;
        var url;
        //here you can navigate to the url
    }
  
</script>

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Emad
Top achievements
Rank 1
answered on 15 Oct 2015, 10:19 PM

I am not expert in KendoUI nor in AngularJS, but...

If you are using angular, most likely you are doing $location.path(url). Since KendoUI probably is working under jQuery your change to the location is not happening "within" angular, so the change to $location is not picked up until the next $digest cycle, so you have to do $scope.$apply() after $location.path(url).

 

 

Tags
Scheduler
Asked by
Carlos
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Emad
Top achievements
Rank 1
Share this question
or