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

How to toggle between week and workWeek with angular js

5 Answers 85 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 21 Feb 2017, 11:34 AM
I have a requirement to toggle between workWeek and week on hideWeekend checkbox click. Is there any work arround

5 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 22 Feb 2017, 08:23 AM
Hello Sameer,

Here you will find a Dojo sample implementing the required functionality, by using the Scheduler view() method. Note, that in order to prevent View change from the Scheduler toolbar, I have hidden the Scheduler views chooser:
.k-scheduler-toolbar .k-scheduler-views {
  display: none;
}

I hope, that this helps. In case you have any further questions, please do not hesitate to contact us.

Regards,
Veselin Tsvetanov
Telerik by Progress
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
Sameer
Top achievements
Rank 1
answered on 22 Feb 2017, 08:45 AM

Hello Veselin,

I've tried what you said and shown in dojo, but after applying these changes it is throwing error, find attached image.

0
Veselin Tsvetanov
Telerik team
answered on 23 Feb 2017, 09:40 AM
Hi Sameer,

In order to assist you in troubleshooting the observed error, we will need to be able to reproduce it locally. Therefore, I would like to ask you to modify the Dojo sample sent, so it reproduces the problem and send it back to us.

Regards,
Veselin Tsvetanov
Telerik by Progress
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
Sameer
Top achievements
Rank 1
answered on 24 Feb 2017, 04:11 AM

Hello Veselin,

I can not replicate the exact scheduler i am having and it is against the policy, although i can tell you the error;

$scope.scheduler.view(view); at this line there is an error saying;Type Error:  Can not read property get of null.

0
Veselin Tsvetanov
Telerik team
answered on 27 Feb 2017, 09:22 AM
Hi Sameer,

I am afraid, that without being able to replicate the error locally, I won't be able to isolate the reason for it.

Regards,
Veselin Tsvetanov
Telerik by Progress
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
Sameer
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Sameer
Top achievements
Rank 1
Share this question
or