Selection Customization

8 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 08 Mar 2012 Link to this post

    Hi,

    I need to create (or modify) a control that that looks like the ScheduleView with time on the left and days of the week (generically, not date specific) across the top.  But instead of creating appointments that span across full days, I need to be able to select in 2 dimensions similar the way GridView works in Extended cell selection. 

    After a person drags across the 2d area, a dialog will pop up which lets them specify the specifics of those blocks of time (30 minute intervals) with the same settings and get colored accordingly.  The selection isn't an entity unto itself, like an appointment would be, but rather just defined which blocks share the same information.

    I am hoping that if the built in controls don't do what I want, i can at least use the parts of the ScheduleView to get the look and feel that it offers.

    Some guidance how I could go about doing this would be great. I have attached a mockup based on the ScheduleView to give an idea of what I am after.

    Cheers,
    Clint
  2. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 09 Mar 2012 Link to this post

    I noticed that the ScheduleView uses something called TimeRuler internally.  Is that something that I can use on its own?
  3. DevCraft banner
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 Mar 2012 Link to this post

    Hello Clint,

    We haven't tested such a scenario, but I would suggest to try to customize the SlotSelectionBehavior of the ScheduleView.  To do that you should inherit the SlotSelectionBehavior class and override its GetSelectionOverride method according to your requirements.

    In order to style certain slots differently, you should add them to a SpecialSlots collection of the ScheduleView and also set a SpecialSlotsStyleSelector. More information about this can be found here.

    Hope this helps.

    Greetings,
    Yana
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Fabio
    Fabio avatar
    4 posts
    Member since:
    Jan 2011

    Posted 03 Apr 2012 Link to this post

    Clint,

    Have you had any luck? I'm looking to do something similar and if you made some progress and could share some tips, that would save me some time.

    Thanks!
  6. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 03 Apr 2012 Link to this post

    I didn't end up using the Schedule control.  Instead I wrote a control from scratch which did what I needed.

    Sorry, I can't offer you any tips.  But since there are now at least two of us who would have liked this kind of functionality, perhaps it can be bumped up to become a feature request.

    Cheers,
    Clint
  7. Fabio
    Fabio avatar
    4 posts
    Member since:
    Jan 2011

    Posted 03 Apr 2012 Link to this post

    Clint,

    I'm going down the same path.

    I appreciate the quick reply though!

    Thanks!
  8. Sam
    Sam avatar
    1 posts
    Member since:
    Jul 2015

    Posted 14 Jul 2015 Link to this post

    Hi,

     

    I appreciate this post is now three years old, but has there been any update on 2D \ multiple category extended selection for ScheduleView.

    I am looking to implement selecting\booking multiple slots at the same time (in this case, multiple rooms using the same time slots).

    This post is the closest I have found if my enquiry does not merrit a new post.

    Thanks in advance,

    Sam

  9. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 16 Jul 2015 Link to this post

    Hi,

    This is still not possible with the built-in functionality of the control. Did you try to use the SlotSelectionBehavior class?

    Please refer to our documentation for more details about it:
    http://docs.telerik.com/devtools/wpf/controls/radscheduleview/features/slot-selection-behavior.html

    A simple demo how you can use it to change the slot's resources you can find below:
    public class CustomSlotSelectionBehavior : SlotSelectionBehavior
     {
         Slot old = null;
         protected override Slot GetSelectionOverride(SlotSelectionState state, Slot currentSlot)
         {
             
                 if (old != null)
                 {
                     currentSlot.Resources.Add(old.Resources[0]);//add here all resources that you need
                 }
                 old = currentSlot;
             
             return base.GetSelectionOverride(state, currentSlot);
         }
     
     }


    Regards,
    Rosi
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner