Show resources based on date

4 posts, 0 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 16 Nov 2009 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 20 Nov 2009 Link to this post

    But this will work only on page load? Would it be possible to evaluate which resources to show on every startdate / enddate change?
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 20 Nov 2009 Link to this post

    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.
Back to Top