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

Selection Customization

7 Answers 72 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 08 Mar 2012, 07:32 PM
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

7 Answers, 1 is accepted

Sort by
0
Clint Singer
Top achievements
Rank 1
answered on 09 Mar 2012, 09:24 PM
I noticed that the ScheduleView uses something called TimeRuler internally.  Is that something that I can use on its own?
0
Yana
Telerik team
answered on 14 Mar 2012, 02:15 PM
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 >>
0
Fabio
Top achievements
Rank 1
answered on 03 Apr 2012, 07:12 AM
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!
0
Clint Singer
Top achievements
Rank 1
answered on 03 Apr 2012, 03:56 PM
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
0
Fabio
Top achievements
Rank 1
answered on 03 Apr 2012, 04:00 PM
Clint,

I'm going down the same path.

I appreciate the quick reply though!

Thanks!
0
Sam
Top achievements
Rank 1
answered on 14 Jul 2015, 04:26 PM

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

0
Rosi
Telerik team
answered on 16 Jul 2015, 01:52 PM
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
Tags
ScheduleView
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Clint Singer
Top achievements
Rank 1
Yana
Telerik team
Fabio
Top achievements
Rank 1
Sam
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or