Resource Row Checkbox or Multiple Row Select in Timelineview

5 posts, 1 answers
  1. Scott
    Scott avatar
    38 posts
    Member since:
    Sep 2012

    Posted 14 Nov 2014 Link to this post

    We're building an application using the RadScheduleView in timelineview only.  We have a long list of dynamic resources which are staff people.  I'm looking for a way to select one or several rows in the timeline view.  Say, for instance, I want to select 7 different staff in the scheduleview, either by clicking on the row or maybe selecting a checkbox (or both), and then perform some action on the selected rows/staff/resources (such as a batch edit or delete, etc).
    Is there any way to make this happen with the scheduleview in timeline mode?  This is critical to the application we're building, so I'm hoping there is some way to do it.  Thanks!
  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 18 Nov 2014 Link to this post

    Hi Scott,

    In order to achieve a similar to the described and desired functionality you could modify the GroupHeaderTemplateSelector by adding a button into the GroupHeader and handle its Click event. We have created a sample project that demonstrates how to select all appointments of a specific Resource using the Click event of the button and based on it you could implement your own custom logic in order to achieved the desired. Please, give it a try.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Scott
    Scott avatar
    38 posts
    Member since:
    Sep 2012

    Posted 03 Dec 2014 in reply to Nasko Link to this post

    Thank you Nasko, this works well.  I am running into one issue though.  I currently have two seperate group descriptions / resource types that I and binding the scheduleview to, so when I modify the templateselector as in your example, the checkbox I add to it is appearing next to both "columns" instead of just one.  I only want it to appear next to the staff person's name, but it's appearing next to both staff and office.  Can I somehow specify in the template that I only want it to appear in the first group description/resource type?  Thanks again!
  5. Answer
    Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 05 Dec 2014 Link to this post

    Hi Scott,

    In order to achieve the desired appearance of the GroupHeaders you could create a custom GroupHeaderContentTemplateSelector. Please, check the following article in our help documentation that provides more detailed information:
    http://www.telerik.com/help/wpf/radscheduleview-styles-and-templates-templating-groupheaders.html

    We have also created a sample project that demonstrates the described in the article approach. Please, give it a try and let us know if it worked for you.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Scott
    Scott avatar
    38 posts
    Member since:
    Sep 2012

    Posted 05 Dec 2014 in reply to Nasko Link to this post

    Thanks again, this worked perfectly!
Back to Top
DevCraft banner