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

Current seelcted view

3 Answers 405 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
rahul
Top achievements
Rank 1
rahul asked on 17 Aug 2017, 03:05 PM
I need to know a way to find out the selected view in the  and grab that into a javascript object.

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 18 Aug 2017, 12:27 PM
Hello Rahul,

In order to get the currently selected view on the Scheduler, you should first get a reference to the scheduler widget and then use its view() method. This will return an object (type: kendo.ui.SchedulerView), representing the currently selected view. Once of the properties of this object, is the name which should suite your scenario:

http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#methods-view

In the example below. you can observe the usage of the above-suggested approach (click "show selected view" button)

https://dojo.telerik.com/ecuke/4

Hope this would help.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
rahul
Top achievements
Rank 1
answered on 24 Aug 2017, 08:30 PM
I am using angular 1.6. So what is my reference to the scheduler widger in my case?
0
Nencho
Telerik team
answered on 25 Aug 2017, 08:20 AM
Hello Rahul,

In Angular scenario you can still use the Client API of the widgets. Hence you only need to subscribe for the click event of the button:

<kendo-button class="k-primary" ng-click="onClick1()">Get Selected View</kendo-button>

In the modified dojo example below, you can observe this implementation:

http://dojo.telerik.com/@nenchef/ALOCo/2

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
rahul
Top achievements
Rank 1
Answers by
Nencho
Telerik team
rahul
Top achievements
Rank 1
Share this question
or