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

Show resources based on date

3 Answers 49 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Datamex
Top achievements
Rank 2
Datamex asked on 16 Nov 2009, 09:37 AM
Dear telerik,

Would it be possible to show or hide a Resource based upon a date? For example: we have a list of Employees. An Employee has got a StartedWorkingOn and an StoppedWorkingOn datetime. I want to show an Employee only when the current shown date in the scheduler is greather than the StartedWorkingOn-date and smaller than the StoppedWorkingOn date.

Example:
  • Jan is working at Example BV since 1st of January 2007 and does not have an StoppedWorkingOn date
  • Pete, an intern, is working at Example BV since the 1st of June 2009 and will stop working on the 1st of January 2010.

When I click through the scheduler, currently I should always see Jan and Pete together, but when I reach the 1st of January 2010, the scheduler should only show Pete! How can I accomplish this?

We are using client-side binding, since I do not want my scheduler to give me a postback when I switch days.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Nov 2009, 04:02 PM
Hello,

You can manually populate resources as in this help topic:
http://www.telerik.com/help/aspnet-ajax/resource_grouping.html


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Datamex
Top achievements
Rank 2
answered on 20 Nov 2009, 08:15 AM
But this will work only on page load? Would it be possible to evaluate which resources to show on every startdate / enddate change?
0
Dimitar Milushev
Telerik team
answered on 20 Nov 2009, 01:31 PM
Hello Datamex,

Unfortunately it is not possible to change the visible resources this way when using client-side binding as the Scheduler's layout is created on the server when you initially load the page.

Best wishes,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
Datamex
Top achievements
Rank 2
Answers by
Peter
Telerik team
Datamex
Top achievements
Rank 2
Dimitar Milushev
Telerik team
Share this question
or